| 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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 auto kv = result.first; | 629 auto kv = result.first; |
| 630 bool inserted = result.second; | 630 bool inserted = result.second; |
| 631 if (inserted) { | 631 if (inserted) { |
| 632 // No need to reset BWE if this is the first time the network connects. | 632 // No need to reset BWE if this is the first time the network connects. |
| 633 return; | 633 return; |
| 634 } | 634 } |
| 635 if (kv->second != network_route) { | 635 if (kv->second != network_route) { |
| 636 kv->second = network_route; | 636 kv->second = network_route; |
| 637 LOG(LS_INFO) << "Network route changed on transport " << transport_name | 637 LOG(LS_INFO) << "Network route changed on transport " << transport_name |
| 638 << ": new local network id " << network_route.local_network_id | 638 << ": new local network id " << network_route.local_network_id |
| 639 << " new remote network id " | 639 << " new remote network id " << network_route.remote_network_id |
| 640 << network_route.remote_network_id; | 640 << " Reset bitrate to " |
| 641 // TODO(holmer): Update the BWE bitrates. | 641 << config_.bitrate_config.start_bitrate_bps << "bps"; |
| 642 congestion_controller_->ResetBweAndBitrates( |
| 643 config_.bitrate_config.start_bitrate_bps, |
| 644 config_.bitrate_config.min_bitrate_bps, |
| 645 config_.bitrate_config.max_bitrate_bps); |
| 642 } | 646 } |
| 643 } | 647 } |
| 644 | 648 |
| 645 void Call::UpdateAggregateNetworkState() { | 649 void Call::UpdateAggregateNetworkState() { |
| 646 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); | 650 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); |
| 647 | 651 |
| 648 bool have_audio = false; | 652 bool have_audio = false; |
| 649 bool have_video = false; | 653 bool have_video = false; |
| 650 { | 654 { |
| 651 ReadLockScoped read_lock(*send_crit_); | 655 ReadLockScoped read_lock(*send_crit_); |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 // thread. Then this check can be enabled. | 857 // thread. Then this check can be enabled. |
| 854 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); | 858 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); |
| 855 if (RtpHeaderParser::IsRtcp(packet, length)) | 859 if (RtpHeaderParser::IsRtcp(packet, length)) |
| 856 return DeliverRtcp(media_type, packet, length); | 860 return DeliverRtcp(media_type, packet, length); |
| 857 | 861 |
| 858 return DeliverRtp(media_type, packet, length, packet_time); | 862 return DeliverRtp(media_type, packet, length, packet_time); |
| 859 } | 863 } |
| 860 | 864 |
| 861 } // namespace internal | 865 } // namespace internal |
| 862 } // namespace webrtc | 866 } // namespace webrtc |
| OLD | NEW |