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}
This commit is contained in:
Irfan Sheriff 2016-08-01 12:16:43 -07:00
parent dc35dcd4dc
commit b578d6c56b

View File

@ -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);