With opportunistic forwarding, no need to not remove layer 0 (#1529)

This commit is contained in:
Raja Subramanian
2023-03-19 18:19:15 +05:30
committed by GitHub
parent 7d857c9557
commit bbba3f8168
+1 -2
View File
@@ -426,8 +426,7 @@ func (s *StreamTrackerManager) removeAvailableLayer(layer int32) {
newLayers := make([]int32, 0, DefaultMaxLayerSpatial+1)
for _, l := range s.availableLayers {
// do not remove layers for non-simulcast
if l != layer || len(s.trackInfo.Layers) < 2 {
if l != layer {
newLayers = append(newLayers, l)
}
}