Prevent bind lock deadlock on muted. (#3504)

Need to re-visit the bind lock scope and maybe make the codec/mime
atomic and access them without bind lock. But, doing a whack-a-mole a
bit first to move things forward. Will look at making them atomics.
This commit is contained in:
Raja Subramanian
2025-03-09 11:21:09 +05:30
committed by GitHub
parent 48063df5b8
commit 7f6afe05ad
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -481,7 +481,7 @@ func (s *StreamTrackerManager) getLayeredBitrateLocked() ([]int32, Bitrates) {
for i, tracker := range s.trackers {
if tracker != nil {
tls := make([]int64, buffer.DefaultMaxLayerTemporal+1)
if slices.Contains(s.availableLayers ,int32(i)) {
if slices.Contains(s.availableLayers, int32(i)) {
tls = tracker.BitrateTemporalCumulative()
}