Remove duplicate SSRC get. (#3318)
The duplicate was not checking for `nil`. The SSRC is already loaded with proper nil check before.
This commit is contained in:
@@ -400,8 +400,6 @@ func (s *StreamAllocator) OnREMB(downTrack *sfu.DownTrack, remb *rtcp.ReceiverEs
|
||||
}
|
||||
|
||||
// try to lock to track which is sending this update
|
||||
downTrackSSRC := track.DownTrack().SSRC()
|
||||
downTrackSSRCRTX := track.DownTrack().SSRCRTX()
|
||||
for _, ssrc := range remb.SSRCs {
|
||||
if ssrc == 0 {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user