Skip to content

Commit

Permalink
Fix typo in f5840a
Browse files Browse the repository at this point in the history
When filtering SSRCes we were running the filter operation on the source
slice and not the filtered slice. Causing us to ignore all the filter
operations that had been previously run.
  • Loading branch information
Sean-Der committed Oct 15, 2021
1 parent f5840a7 commit b8aacec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peerconnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ func (pc *PeerConnection) startRTPReceivers(incomingTracks []trackDetails, curre
for _, track := range receiver.Tracks() {
for _, ssrc := range incomingTrack.ssrcs {
if ssrc == track.SSRC() {
filteredTracks = filterTrackWithSSRC(incomingTracks, track.SSRC())
filteredTracks = filterTrackWithSSRC(filteredTracks, track.SSRC())
}
}
}
Expand Down

0 comments on commit b8aacec

Please sign in to comment.