mirror of
https://github.com/livekit/livekit.git
synced 2026-05-25 12:04:47 +00:00
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)
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user