From d45d11108427fc19f3b25a603aefbdbbf5fd765f Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Tue, 26 May 2020 16:44:39 +0200 Subject: [PATCH] Remove erroneous iceCandidates field from upTrack. --- conn.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/conn.go b/conn.go index 20456f3..f15ee54 100644 --- a/conn.go +++ b/conn.go @@ -17,11 +17,6 @@ import ( "github.com/pion/webrtc/v2" ) -type iceConnection interface { - addICECandidate(candidate *webrtc.ICECandidateInit) error - flushICECandidates() error -} - type upTrack struct { track *webrtc.Track label string @@ -32,7 +27,6 @@ type upTrack struct { lastPLI uint64 lastSenderReport uint32 lastSenderReportTime uint32 - iceCandidates []*webrtc.ICECandidateInit localCh chan struct{} // signals that local has changed writerDone chan struct{} // closed when the loop dies @@ -93,6 +87,11 @@ func (up *upTrack) hasRtcpFb(tpe, parameter string) bool { return false } +type iceConnection interface { + addICECandidate(candidate *webrtc.ICECandidateInit) error + flushICECandidates() error +} + type upConnection struct { id string label string