diff --git a/webrtc/modules/congestion_controller/include/congestion_controller.h b/webrtc/modules/congestion_controller/include/congestion_controller.h index f2bec76f25..d01fdf1d14 100644 --- a/webrtc/modules/congestion_controller/include/congestion_controller.h +++ b/webrtc/modules/congestion_controller/include/congestion_controller.h @@ -93,6 +93,8 @@ class CongestionController : public CallStatsObserver, public Module { virtual RemoteBitrateEstimator* GetRemoteBitrateEstimator( bool send_side_bwe); virtual int64_t GetPacerQueuingDelayMs() const; + // TODO(nisse): Delete this accessor function. The pacer should be + // internal to the congestion controller. virtual PacedSender* pacer() { return pacer_.get(); } // TODO(nisse): Deprecated, but still used by downstream projects. virtual PacketRouter* packet_router() { return packet_router_; } diff --git a/webrtc/video/video_send_stream.cc b/webrtc/video/video_send_stream.cc index 188854aede..9a3b51e278 100644 --- a/webrtc/video/video_send_stream.cc +++ b/webrtc/video/video_send_stream.cc @@ -1094,7 +1094,7 @@ void VideoSendStreamImpl::ConfigureProtection() { for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { // Set NACK. rtp_rtcp->SetStorePacketsStatus( - nack_enabled || congestion_controller_->pacer(), + true, kMinSendSidePacketHistorySize); // Set RED/ULPFEC information. for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) {