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:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user