Unify the forwarder between dependency descriptor and no DD case. (#1543)

This commit is contained in:
Raja Subramanian
2023-03-23 17:23:14 +05:30
committed by GitHub
parent db2e9f1f8b
commit d7750a60ec
3 changed files with 92 additions and 107 deletions
+4 -4
View File
@@ -1277,10 +1277,10 @@ func (d *DownTrack) handleRTCP(bytes []byte) {
pliOnce := true
sendPliOnce := func() {
if pliOnce {
targetLayers := d.forwarder.TargetLayers()
if targetLayers != InvalidLayers && !d.forwarder.IsAnyMuted() {
d.logger.Debugw("sending PLI RTCP", "layer", targetLayers.Spatial)
d.receiver.SendPLI(targetLayers.Spatial, false)
_, layer := d.forwarder.CheckSync()
if layer != InvalidLayerSpatial && !d.forwarder.IsAnyMuted() {
d.logger.Debugw("sending PLI RTCP", "layer", layer)
d.receiver.SendPLI(layer, false)
d.isNACKThrottled.Store(true)
d.rtpStats.UpdatePliTime()
pliOnce = false