Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(943)

Unified Diff: webrtc/call/call.cc

Issue 2000063003: Update the BWE when the network route changes. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Add TODO to re-create objects. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/bitrate_controller/bitrate_controller_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/call/call.cc
diff --git a/webrtc/call/call.cc b/webrtc/call/call.cc
index e3c6ec7a0ccb5443e69dabb02dcb11f39f2460e0..6d12202a1dc7db45580da57af0c966616ea5d6cd 100644
--- a/webrtc/call/call.cc
+++ b/webrtc/call/call.cc
@@ -626,9 +626,13 @@ void Call::OnNetworkRouteChanged(const std::string& transport_name,
kv->second = network_route;
LOG(LS_INFO) << "Network route changed on transport " << transport_name
<< ": new local network id " << network_route.local_network_id
- << " new remote network id "
- << network_route.remote_network_id;
- // TODO(holmer): Update the BWE bitrates.
+ << " new remote network id " << network_route.remote_network_id
+ << " Reset bitrate to "
+ << config_.bitrate_config.start_bitrate_bps << "bps";
+ congestion_controller_->ResetBweAndBitrates(
+ config_.bitrate_config.start_bitrate_bps,
+ config_.bitrate_config.min_bitrate_bps,
+ config_.bitrate_config.max_bitrate_bps);
}
}
« no previous file with comments | « no previous file | webrtc/modules/bitrate_controller/bitrate_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698