| 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 27 matching lines...) Expand all Loading... |
| 38 const std::vector<PacketInfo>& packet_feedback_vector) { | 38 const std::vector<PacketInfo>& packet_feedback_vector) { |
| 39 rtc::CritScope cs(&lock_); | 39 rtc::CritScope cs(&lock_); |
| 40 for (PacketInfo info : packet_feedback_vector) | 40 for (PacketInfo info : packet_feedback_vector) |
| 41 OnPacketArrival(info.sequence_number, info.arrival_time_ms); | 41 OnPacketArrival(info.sequence_number, info.arrival_time_ms); |
| 42 } | 42 } |
| 43 | 43 |
| 44 void RemoteEstimatorProxy::IncomingPacket(int64_t arrival_time_ms, | 44 void RemoteEstimatorProxy::IncomingPacket(int64_t arrival_time_ms, |
| 45 size_t payload_size, | 45 size_t payload_size, |
| 46 const RTPHeader& header, | 46 const RTPHeader& header, |
| 47 bool was_paced) { | 47 bool was_paced) { |
| 48 RTC_DCHECK(header.extension.hasTransportSequenceNumber); | 48 if (!header.extension.hasTransportSequenceNumber) { |
| 49 LOG(LS_WARNING) << "RemoteEstimatorProxy: Incoming packet " |
| 50 "is missing the transport sequence number extension!"; |
| 51 return; |
| 52 } |
| 49 rtc::CritScope cs(&lock_); | 53 rtc::CritScope cs(&lock_); |
| 50 media_ssrc_ = header.ssrc; | 54 media_ssrc_ = header.ssrc; |
| 51 OnPacketArrival(header.extension.transportSequenceNumber, arrival_time_ms); | 55 OnPacketArrival(header.extension.transportSequenceNumber, arrival_time_ms); |
| 52 } | 56 } |
| 53 | 57 |
| 54 void RemoteEstimatorProxy::RemoveStream(unsigned int ssrc) {} | 58 void RemoteEstimatorProxy::RemoveStream(unsigned int ssrc) {} |
| 55 | 59 |
| 56 bool RemoteEstimatorProxy::LatestEstimate(std::vector<unsigned int>* ssrcs, | 60 bool RemoteEstimatorProxy::LatestEstimate(std::vector<unsigned int>* ssrcs, |
| 57 unsigned int* bitrate_bps) const { | 61 unsigned int* bitrate_bps) const { |
| 58 return false; | 62 return false; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // they need to be re-sent after a reordering. Removal will be handled | 155 // they need to be re-sent after a reordering. Removal will be handled |
| 152 // by OnPacketArrival once packets are too old. | 156 // by OnPacketArrival once packets are too old. |
| 153 } | 157 } |
| 154 if (it == packet_arrival_times_.end()) | 158 if (it == packet_arrival_times_.end()) |
| 155 window_start_seq_ = -1; | 159 window_start_seq_ = -1; |
| 156 | 160 |
| 157 return true; | 161 return true; |
| 158 } | 162 } |
| 159 | 163 |
| 160 } // namespace webrtc | 164 } // namespace webrtc |
| OLD | NEW |