Request key frame if subscribed is higher than max seen and not (#3348)

congested.
This commit is contained in:
Raja Subramanian
2025-01-20 16:40:52 +05:30
committed by GitHub
parent fe94a18bc2
commit 35bb36e5fb
+12 -1
View File
@@ -1552,7 +1552,18 @@ func (f *Forwarder) CheckSync() (bool, int32) {
f.lock.RLock()
defer f.lock.RUnlock()
return f.vls.CheckSync()
locked, layer := f.vls.CheckSync()
if !locked {
return locked, layer
}
// max published layer (as seen by this forwarder) could be
// lower than max subscribed, mark de-synced if not deficient
if !f.isDeficientLocked() && f.vls.GetMax().Spatial > f.vls.GetTarget().Spatial {
return false, layer
}
return true, layer
}
func (f *Forwarder) FilterRTX(nacks []uint16) (filtered []uint16, disallowedLayers [buffer.DefaultMaxLayerSpatial + 1]bool) {