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

Side by Side Diff: webrtc/call/call.cc

Issue 2755553003: Ignore packets sent on old network route when receiving feedback. (Closed)
Patch Set: Comments addressed. Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/modules/congestion_controller/congestion_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 kv->second = network_route; 963 kv->second = network_route;
964 LOG(LS_INFO) << "Network route changed on transport " << transport_name 964 LOG(LS_INFO) << "Network route changed on transport " << transport_name
965 << ": new local network id " << network_route.local_network_id 965 << ": new local network id " << network_route.local_network_id
966 << " new remote network id " << network_route.remote_network_id 966 << " new remote network id " << network_route.remote_network_id
967 << " Reset bitrates to min: " 967 << " Reset bitrates to min: "
968 << config_.bitrate_config.min_bitrate_bps 968 << config_.bitrate_config.min_bitrate_bps
969 << " bps, start: " << config_.bitrate_config.start_bitrate_bps 969 << " bps, start: " << config_.bitrate_config.start_bitrate_bps
970 << " bps, max: " << config_.bitrate_config.start_bitrate_bps 970 << " bps, max: " << config_.bitrate_config.start_bitrate_bps
971 << " bps."; 971 << " bps.";
972 RTC_DCHECK_GT(config_.bitrate_config.start_bitrate_bps, 0); 972 RTC_DCHECK_GT(config_.bitrate_config.start_bitrate_bps, 0);
973 congestion_controller_->ResetBweAndBitrates( 973 congestion_controller_->OnNetworkRouteChanged(
974 config_.bitrate_config.start_bitrate_bps, 974 network_route, config_.bitrate_config.start_bitrate_bps,
975 config_.bitrate_config.min_bitrate_bps, 975 config_.bitrate_config.min_bitrate_bps,
976 config_.bitrate_config.max_bitrate_bps); 976 config_.bitrate_config.max_bitrate_bps);
977 } 977 }
978 } 978 }
979 979
980 void Call::UpdateAggregateNetworkState() { 980 void Call::UpdateAggregateNetworkState() {
981 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); 981 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread());
982 982
983 bool have_audio = false; 983 bool have_audio = false;
984 bool have_video = false; 984 bool have_video = false;
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 if (media_type != MediaType::AUDIO || 1279 if (media_type != MediaType::AUDIO ||
1280 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) { 1280 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) {
1281 congestion_controller_->OnReceivedPacket( 1281 congestion_controller_->OnReceivedPacket(
1282 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(), 1282 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(),
1283 header); 1283 header);
1284 } 1284 }
1285 } 1285 }
1286 1286
1287 } // namespace internal 1287 } // namespace internal
1288 } // namespace webrtc 1288 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/congestion_controller/congestion_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698