Index: webrtc/call/call.cc |
diff --git a/webrtc/call/call.cc b/webrtc/call/call.cc |
index f7c66db4b21c5d77633ef88f57b04eab8458de9a..82ca630ad29842cb3f9baa4dc9b13012f40b0ea4 100644 |
--- a/webrtc/call/call.cc |
+++ b/webrtc/call/call.cc |
@@ -52,9 +52,8 @@ const int Call::Config::kDefaultStartBitrateBps = 300000; |
namespace internal { |
-class Call : public webrtc::Call, |
- public PacketReceiver, |
- public CongestionController::Observer { |
+class Call : public webrtc::Call, public PacketReceiver, |
+ public BitrateObserver { |
public: |
explicit Call(const Call::Config& config); |
virtual ~Call(); |
@@ -700,8 +699,10 @@ void Call::OnNetworkChanged(uint32_t target_bitrate_bps, uint8_t fraction_loss, |
pacer_bitrate_sum_kbits_ += pacer_bitrate_bps / 1000; |
++num_bitrate_updates_; |
} |
- congestion_controller_->SetAllocatedSendBitrate(allocated_bitrate_bps, |
- pad_up_to_bitrate_bps); |
+ congestion_controller_->UpdatePacerBitrate( |
+ target_bitrate_bps / 1000, |
+ PacedSender::kDefaultPaceMultiplier * pacer_bitrate_bps / 1000, |
+ pad_up_to_bitrate_bps / 1000); |
} |
void Call::ConfigureSync(const std::string& sync_group) { |