Make ReceiveStatisticsImpl::SetMaxReorderingThreshold apply per ssrc
Bug: webrtc:10669 Change-Id: I9fec43fefe301b1e05eaea774a1453c93c4cc106 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/138202 Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Oskar Sundbom <ossu@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28069}
This commit is contained in:
@ -148,8 +148,16 @@ RtpVideoStreamReceiver::RtpVideoStreamReceiver(
|
||||
const int max_reordering_threshold = (config_.rtp.nack.rtp_history_ms > 0)
|
||||
? kMaxPacketAgeToNack
|
||||
: kDefaultMaxReorderingThreshold;
|
||||
rtp_receive_statistics_->SetMaxReorderingThreshold(max_reordering_threshold);
|
||||
|
||||
rtp_receive_statistics_->SetMaxReorderingThreshold(config_.rtp.remote_ssrc,
|
||||
max_reordering_threshold);
|
||||
// TODO(nisse): For historic reasons, we applied the above
|
||||
// max_reordering_threshold also for RTX stats, which makes little sense since
|
||||
// we don't NACK rtx packets. Consider deleting the below block, and rely on
|
||||
// the default threshold.
|
||||
if (config_.rtp.rtx_ssrc) {
|
||||
rtp_receive_statistics_->SetMaxReorderingThreshold(
|
||||
config_.rtp.rtx_ssrc, max_reordering_threshold);
|
||||
}
|
||||
if (config_.rtp.rtcp_xr.receiver_reference_time_report)
|
||||
rtp_rtcp_->SetRtcpXrRrtrStatus(true);
|
||||
|
||||
|
Reference in New Issue
Block a user