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 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 bool inserted = result.second; | 687 bool inserted = result.second; |
688 if (inserted) { | 688 if (inserted) { |
689 // No need to reset BWE if this is the first time the network connects. | 689 // No need to reset BWE if this is the first time the network connects. |
690 return; | 690 return; |
691 } | 691 } |
692 if (kv->second != network_route) { | 692 if (kv->second != network_route) { |
693 kv->second = network_route; | 693 kv->second = network_route; |
694 LOG(LS_INFO) << "Network route changed on transport " << transport_name | 694 LOG(LS_INFO) << "Network route changed on transport " << transport_name |
695 << ": new local network id " << network_route.local_network_id | 695 << ": new local network id " << network_route.local_network_id |
696 << " new remote network id " << network_route.remote_network_id | 696 << " new remote network id " << network_route.remote_network_id |
697 << " Reset bitrate to " | 697 << " Reset bitrates to min: " |
698 << config_.bitrate_config.start_bitrate_bps << "bps"; | 698 << config_.bitrate_config.min_bitrate_bps |
| 699 << " bps, start: " << config_.bitrate_config.start_bitrate_bps |
| 700 << " bps, max: " << config_.bitrate_config.start_bitrate_bps |
| 701 << " bps."; |
699 congestion_controller_->ResetBweAndBitrates( | 702 congestion_controller_->ResetBweAndBitrates( |
700 config_.bitrate_config.start_bitrate_bps, | 703 config_.bitrate_config.start_bitrate_bps, |
701 config_.bitrate_config.min_bitrate_bps, | 704 config_.bitrate_config.min_bitrate_bps, |
702 config_.bitrate_config.max_bitrate_bps); | 705 config_.bitrate_config.max_bitrate_bps); |
703 } | 706 } |
704 } | 707 } |
705 | 708 |
706 void Call::UpdateAggregateNetworkState() { | 709 void Call::UpdateAggregateNetworkState() { |
707 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); | 710 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); |
708 | 711 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 // thread. Then this check can be enabled. | 943 // thread. Then this check can be enabled. |
941 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); | 944 // RTC_DCHECK(!configuration_thread_checker_.CalledOnValidThread()); |
942 if (RtpHeaderParser::IsRtcp(packet, length)) | 945 if (RtpHeaderParser::IsRtcp(packet, length)) |
943 return DeliverRtcp(media_type, packet, length); | 946 return DeliverRtcp(media_type, packet, length); |
944 | 947 |
945 return DeliverRtp(media_type, packet, length, packet_time); | 948 return DeliverRtp(media_type, packet, length, packet_time); |
946 } | 949 } |
947 | 950 |
948 } // namespace internal | 951 } // namespace internal |
949 } // namespace webrtc | 952 } // namespace webrtc |
OLD | NEW |