From 0d9bad489c4b9e98b2655371719873f946b375c5 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Wed, 8 Jan 2025 22:50:34 +0530 Subject: [PATCH] Remove duplicate SSRC get. (#3318) The duplicate was not checking for `nil`. The SSRC is already loaded with proper nil check before. --- pkg/sfu/streamallocator/streamallocator.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/sfu/streamallocator/streamallocator.go b/pkg/sfu/streamallocator/streamallocator.go index 42c5ebda..c94ed914 100644 --- a/pkg/sfu/streamallocator/streamallocator.go +++ b/pkg/sfu/streamallocator/streamallocator.go @@ -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