| 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 f7e7e5625a2984500bbb8a8231935181c3f42dc5..8806f30085322ac38af2d9070ac4bfb26e3d3e69 100644
|
| --- a/webrtc/modules/congestion_controller/congestion_controller.cc
|
| +++ b/webrtc/modules/congestion_controller/congestion_controller.cc
|
| @@ -21,6 +21,7 @@
|
| #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/include/defines.h"
|
| #include "webrtc/modules/congestion_controller/probe_controller.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"
|
| @@ -42,9 +43,8 @@ static void ClampBitrates(int* bitrate_bps,
|
| // TODO(holmer): We should make sure the default bitrates are set to 10 kbps,
|
| // and that we don't try to set the min bitrate to 0 from any applications.
|
| // The congestion controller should allow a min bitrate of 0.
|
| - const int kMinBitrateBps = 10000;
|
| - if (*min_bitrate_bps < kMinBitrateBps)
|
| - *min_bitrate_bps = kMinBitrateBps;
|
| + if (*min_bitrate_bps < congestion_controller::kMinBitrateBps)
|
| + *min_bitrate_bps = congestion_controller::kMinBitrateBps;
|
| if (*max_bitrate_bps > 0)
|
| *max_bitrate_bps = std::max(*min_bitrate_bps, *max_bitrate_bps);
|
| if (*bitrate_bps > 0)
|
| @@ -60,7 +60,7 @@ class WrappingBitrateEstimator : public RemoteBitrateEstimator {
|
| rbe_(new RemoteBitrateEstimatorSingleStream(observer_, clock_)),
|
| using_absolute_send_time_(false),
|
| packets_since_absolute_send_time_(0),
|
| - min_bitrate_bps_(RemoteBitrateEstimator::kDefaultMinBitrateBps) {}
|
| + min_bitrate_bps_(congestion_controller::kMinBitrateBps) {}
|
|
|
| virtual ~WrappingBitrateEstimator() {}
|
|
|
| @@ -171,7 +171,7 @@ CongestionController::CongestionController(
|
| new RateLimiter(clock, kRetransmitWindowSizeMs)),
|
| remote_estimator_proxy_(clock_, packet_router_.get()),
|
| transport_feedback_adapter_(clock_, bitrate_controller_.get()),
|
| - min_bitrate_bps_(RemoteBitrateEstimator::kDefaultMinBitrateBps),
|
| + min_bitrate_bps_(congestion_controller::kMinBitrateBps),
|
| max_bitrate_bps_(0),
|
| last_reported_bitrate_bps_(0),
|
| last_reported_fraction_loss_(0),
|
| @@ -202,7 +202,7 @@ CongestionController::CongestionController(
|
| new RateLimiter(clock, kRetransmitWindowSizeMs)),
|
| remote_estimator_proxy_(clock_, packet_router_.get()),
|
| transport_feedback_adapter_(clock_, bitrate_controller_.get()),
|
| - min_bitrate_bps_(RemoteBitrateEstimator::kDefaultMinBitrateBps),
|
| + min_bitrate_bps_(congestion_controller::kMinBitrateBps),
|
| max_bitrate_bps_(0),
|
| last_reported_bitrate_bps_(0),
|
| last_reported_fraction_loss_(0),
|
|
|