From b578d6c56bf7a07c3fcbcf2a4a617b003402e519 Mon Sep 17 00:00:00 2001 From: Irfan Sheriff Date: Mon, 1 Aug 2016 12:16:43 -0700 Subject: [PATCH] congestion controller: Fix network route change handling A reset of Bwe and rates on network route change triggers switching of the RemoteBitrateEstimator from DelayBasedBwe to RemoteBitrateEstimatorAbsSendTime. This is unexpected, fix this. BUG= R=stefan@webrtc.org Review URL: https://codereview.webrtc.org/2193043002 . Cr-Commit-Position: refs/heads/master@{#13594} --- webrtc/modules/congestion_controller/congestion_controller.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/modules/congestion_controller/congestion_controller.cc b/webrtc/modules/congestion_controller/congestion_controller.cc index 3bb55cba58..6917658b3f 100644 --- a/webrtc/modules/congestion_controller/congestion_controller.cc +++ b/webrtc/modules/congestion_controller/congestion_controller.cc @@ -247,7 +247,7 @@ void CongestionController::ResetBweAndBitrates(int bitrate_bps, if (remote_bitrate_estimator_) remote_bitrate_estimator_->SetMinBitrate(min_bitrate_bps); - RemoteBitrateEstimator* rbe = new RemoteBitrateEstimatorAbsSendTime( + RemoteBitrateEstimator* rbe = new DelayBasedBwe( &transport_feedback_adapter_, clock_); transport_feedback_adapter_.SetBitrateEstimator(rbe); rbe->SetMinBitrate(min_bitrate_bps);