Propagate spreader threshold to RED receivers. (#4683)
Following up on this PR (https://github.com/livekit/livekit/pull/4678 - great catch btw, thank you), propagating the spreader threshold to RED receivers also. Removing the test as it was a simple case and that would not have caught the original issue.
This commit is contained in:
@@ -61,6 +61,10 @@ func NewRedReceiver(receiver TrackReceiver, dsp utils.DownTrackSpreaderParams) R
|
||||
}
|
||||
}
|
||||
|
||||
func (r *RedReceiver) SetLBThreshold(lbThreshold int) {
|
||||
r.downTrackSpreader.SetThreshold(lbThreshold)
|
||||
}
|
||||
|
||||
func (r *RedReceiver) ForwardRTP(pkt *buffer.ExtPacket, spatialLayer int32) int32 {
|
||||
// encode RED payload from primary payload and forward to downtracks
|
||||
if r.downTrackSpreader.DownTrackCount() == 0 {
|
||||
|
||||
Reference in New Issue
Block a user