Temporary change: use pre-defined rids (#3767)

To address a compatibility issue across relay. Will revert this once the
compatibility is addressed.
This commit is contained in:
Raja Subramanian
2025-06-29 20:00:21 +05:30
committed by GitHub
parent cb4da5333a
commit d11da5f5fa
6 changed files with 15 additions and 20 deletions
+2 -1
View File
@@ -597,7 +597,8 @@ func (s *StreamTrackerManager) maxExpectedLayerFromTrackInfoLocked() {
ti := s.trackInfo.Load()
if ti != nil {
for _, layer := range ti.Layers {
if layer.SpatialLayer > s.maxExpectedLayer {
spatialLayer := buffer.VideoQualityToSpatialLayer(layer.Quality, ti)
if spatialLayer > s.maxExpectedLayer {
s.maxExpectedLayer = layer.SpatialLayer
}
}