OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 } | 100 } |
101 ++sequence_number; | 101 ++sequence_number; |
102 } | 102 } |
103 RTC_DCHECK(delta_it == delta_vec.end()); | 103 RTC_DCHECK(delta_it == delta_vec.end()); |
104 if (failed_lookups > 0) { | 104 if (failed_lookups > 0) { |
105 LOG(LS_WARNING) << "Failed to lookup send time for " << failed_lookups | 105 LOG(LS_WARNING) << "Failed to lookup send time for " << failed_lookups |
106 << " packet" << (failed_lookups > 1 ? "s" : "") | 106 << " packet" << (failed_lookups > 1 ? "s" : "") |
107 << ". Send time history too small?"; | 107 << ". Send time history too small?"; |
108 } | 108 } |
109 } | 109 } |
| 110 |
110 RTC_DCHECK(bitrate_estimator_.get() != nullptr); | 111 RTC_DCHECK(bitrate_estimator_.get() != nullptr); |
111 bitrate_estimator_->IncomingPacketFeedbackVector(packet_feedback_vector); | 112 bitrate_estimator_->IncomingPacketFeedbackVector(packet_feedback_vector); |
112 } | 113 } |
113 | 114 |
114 void TransportFeedbackAdapter::OnReceiveBitrateChanged( | 115 void TransportFeedbackAdapter::OnReceiveBitrateChanged( |
115 const std::vector<unsigned int>& ssrcs, | 116 const std::vector<unsigned int>& ssrcs, |
116 unsigned int bitrate) { | 117 unsigned int bitrate) { |
117 rtcp_bandwidth_observer_->OnReceivedEstimatedBitrate(bitrate); | 118 rtcp_bandwidth_observer_->OnReceivedEstimatedBitrate(bitrate); |
118 } | 119 } |
119 | 120 |
120 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, | 121 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, |
121 int64_t max_rtt_ms) { | 122 int64_t max_rtt_ms) { |
122 RTC_DCHECK(bitrate_estimator_.get() != nullptr); | 123 RTC_DCHECK(bitrate_estimator_.get() != nullptr); |
123 bitrate_estimator_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); | 124 bitrate_estimator_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); |
124 } | 125 } |
125 | 126 |
126 } // namespace webrtc | 127 } // namespace webrtc |
OLD | NEW |