| OLD | NEW |
| 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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 bool inserted = result.second; | 671 bool inserted = result.second; |
| 672 if (inserted) { | 672 if (inserted) { |
| 673 // No need to reset BWE if this is the first time the network connects. | 673 // No need to reset BWE if this is the first time the network connects. |
| 674 return; | 674 return; |
| 675 } | 675 } |
| 676 if (kv->second != network_route) { | 676 if (kv->second != network_route) { |
| 677 kv->second = network_route; | 677 kv->second = network_route; |
| 678 LOG(LS_INFO) << "Network route changed on transport " << transport_name | 678 LOG(LS_INFO) << "Network route changed on transport " << transport_name |
| 679 << ": new local network id " << network_route.local_network_id | 679 << ": new local network id " << network_route.local_network_id |
| 680 << " new remote network id " << network_route.remote_network_id | 680 << " new remote network id " << network_route.remote_network_id |
| 681 << " Reset bitrate to " | 681 << " Reset bitrates to min: " |
| 682 << config_.bitrate_config.start_bitrate_bps << "bps"; | 682 << config_.bitrate_config.min_bitrate_bps |
| 683 << " bps, start: " << config_.bitrate_config.start_bitrate_bps |
| 684 << " bps, max: " << config_.bitrate_config.start_bitrate_bps |
| 685 << " bps."; |
| 683 congestion_controller_->ResetBweAndBitrates( | 686 congestion_controller_->ResetBweAndBitrates( |
| 684 config_.bitrate_config.start_bitrate_bps, | 687 config_.bitrate_config.start_bitrate_bps, |
| 685 config_.bitrate_config.min_bitrate_bps, | 688 config_.bitrate_config.min_bitrate_bps, |
| 686 config_.bitrate_config.max_bitrate_bps); | 689 config_.bitrate_config.max_bitrate_bps); |
| 687 } | 690 } |
| 688 } | 691 } |
| 689 | 692 |
| 690 void Call::UpdateAggregateNetworkState() { | 693 void Call::UpdateAggregateNetworkState() { |
| 691 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); | 694 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); |
| 692 | 695 |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 // thread. Then this check can be enabled. | 904 // thread. Then this check can be enabled. |
| 902 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); | 905 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); |
| 903 if (RtpHeaderParser::IsRtcp(packet, length)) | 906 if (RtpHeaderParser::IsRtcp(packet, length)) |
| 904 return DeliverRtcp(media_type, packet, length); | 907 return DeliverRtcp(media_type, packet, length); |
| 905 | 908 |
| 906 return DeliverRtp(media_type, packet, length, packet_time); | 909 return DeliverRtp(media_type, packet, length, packet_time); |
| 907 } | 910 } |
| 908 | 911 |
| 909 } // namespace internal | 912 } // namespace internal |
| 910 } // namespace webrtc | 913 } // namespace webrtc |
| OLD | NEW |