With opportunistic forwarding, no need to not remove layer 0 (#1529)
This commit is contained in:
@@ -426,8 +426,7 @@ func (s *StreamTrackerManager) removeAvailableLayer(layer int32) {
|
|||||||
|
|
||||||
newLayers := make([]int32, 0, DefaultMaxLayerSpatial+1)
|
newLayers := make([]int32, 0, DefaultMaxLayerSpatial+1)
|
||||||
for _, l := range s.availableLayers {
|
for _, l := range s.availableLayers {
|
||||||
// do not remove layers for non-simulcast
|
if l != layer {
|
||||||
if l != layer || len(s.trackInfo.Layers) < 2 {
|
|
||||||
newLayers = append(newLayers, l)
|
newLayers = append(newLayers, l)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user