Cleaning up availableLayers and exemptedLayers (#1407)
* WIP commit * Send stream state paused only when it is paused due to bandwidth limitation. When stream is resumed after a stream is paused, an active update is sent. Note that this means if there are intervening events like mute/unmute between pause and resume, resume will be sent. * WIP commit * fix compile * WIP commit * fixing tests * clean up exempted layers * clean up unused stuff * correct comment * Don't need ops queue as order is not important now * static check * kick off allocation when callbacks are set up, calling from receiver means callbacks may not be set up
This commit is contained in:
@@ -217,6 +217,15 @@ func (s *StreamTracker) BitrateTemporalCumulative() []int64 {
|
||||
}
|
||||
}
|
||||
|
||||
// clear higher layers
|
||||
for i := 0; i < len(brs); i++ {
|
||||
if brs[i] == 0 {
|
||||
for j := i + 1; j < len(brs); j++ {
|
||||
brs[j] = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return brs
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user