Index: webrtc/modules/congestion_controller/congestion_controller.cc |
diff --git a/webrtc/modules/congestion_controller/congestion_controller.cc b/webrtc/modules/congestion_controller/congestion_controller.cc |
index 5767448a5f7bf711a24ef214ea47d5f5cac18f20..3ca0f40539ffefa80d213f3788a2d02aadb6fdb7 100644 |
--- a/webrtc/modules/congestion_controller/congestion_controller.cc |
+++ b/webrtc/modules/congestion_controller/congestion_controller.cc |
@@ -20,8 +20,8 @@ |
#include "webrtc/base/socket.h" |
#include "webrtc/base/thread_annotations.h" |
#include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" |
+#include "webrtc/modules/congestion_controller/delay_based_bandwidth_estimator.h" |
#include "webrtc/modules/remote_bitrate_estimator/include/send_time_history.h" |
-#include "webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time.h" |
#include "webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.h" |
#include "webrtc/modules/utility/include/process_thread.h" |
#include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
@@ -115,7 +115,7 @@ class WrappingBitrateEstimator : public RemoteBitrateEstimator { |
// Instantiate RBE for Time Offset or Absolute Send Time extensions. |
void PickEstimator() EXCLUSIVE_LOCKS_REQUIRED(crit_sect_.get()) { |
if (using_absolute_send_time_) { |
- rbe_.reset(new RemoteBitrateEstimatorAbsSendTime(observer_)); |
+ rbe_.reset(new DelayBasedBwe(observer_)); |
} else { |
rbe_.reset(new RemoteBitrateEstimatorSingleStream(observer_, clock_)); |
} |
@@ -207,7 +207,7 @@ CongestionController::~CongestionController() {} |
void CongestionController::Init() { |
transport_feedback_adapter_.SetBitrateEstimator( |
- new RemoteBitrateEstimatorAbsSendTime(&transport_feedback_adapter_)); |
+ new DelayBasedBwe(&transport_feedback_adapter_)); |
transport_feedback_adapter_.GetBitrateEstimator()->SetMinBitrate( |
min_bitrate_bps_); |
} |