Chaging VideoLayers -> VideoLayer (#1591)

There was mixed used. It is a struct. So, it is a singular.
Change all the places I could find. There may be more, but can be
changed when spotted.
This commit is contained in:
Raja Subramanian
2023-04-08 12:39:02 +05:30
committed by GitHub
parent e03f75d6a1
commit 4969b57c09
9 changed files with 420 additions and 422 deletions
+5 -5
View File
@@ -24,12 +24,12 @@ type Base struct {
func NewBase(logger logger.Logger) *Base {
return &Base{
logger: logger,
maxLayer: buffer.InvalidLayers,
targetLayer: buffer.InvalidLayers, // start off with nothing, let streamallocator/opportunistic forwarder set the target
maxLayer: buffer.InvalidLayer,
targetLayer: buffer.InvalidLayer, // start off with nothing, let streamallocator/opportunistic forwarder set the target
requestSpatial: buffer.InvalidLayerSpatial,
maxSeenLayer: buffer.InvalidLayers,
parkedLayer: buffer.InvalidLayers,
currentLayer: buffer.InvalidLayers,
maxSeenLayer: buffer.InvalidLayer,
parkedLayer: buffer.InvalidLayer,
currentLayer: buffer.InvalidLayer,
}
}
+1 -1
View File
@@ -89,7 +89,7 @@ func (s *Simulcast) Select(extPkt *buffer.ExtPacket, layer int32) (result VideoL
if !isActive {
result.IsResuming = true
}
s.SetParked(buffer.InvalidLayers)
s.SetParked(buffer.InvalidLayer)
if s.currentLayer.Spatial >= s.maxLayer.Spatial {
result.IsSwitchingToMaxSpatial = true