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

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: 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
Index: webrtc/call/call.cc
diff --git a/webrtc/call/call.cc b/webrtc/call/call.cc
index e3c6ec7a0ccb5443e69dabb02dcb11f39f2460e0..67237a97039ea0e13fab791d9dbf0b51eb8057eb 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_->ResetBweBitrates(
+ config_.bitrate_config.start_bitrate_bps,
+ config_.bitrate_config.min_bitrate_bps,
+ config_.bitrate_config.max_bitrate_bps);
}
}

Powered by Google App Engine
This is Rietveld 408576698