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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 void RemoteEstimatorProxy::IncomingPacketFeedbackVector( | 37 void RemoteEstimatorProxy::IncomingPacketFeedbackVector( |
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) { | |
48 if (!header.extension.hasTransportSequenceNumber) { | 47 if (!header.extension.hasTransportSequenceNumber) { |
49 LOG(LS_WARNING) << "RemoteEstimatorProxy: Incoming packet " | 48 LOG(LS_WARNING) << "RemoteEstimatorProxy: Incoming packet " |
50 "is missing the transport sequence number extension!"; | 49 "is missing the transport sequence number extension!"; |
51 return; | 50 return; |
52 } | 51 } |
53 rtc::CritScope cs(&lock_); | 52 rtc::CritScope cs(&lock_); |
54 media_ssrc_ = header.ssrc; | 53 media_ssrc_ = header.ssrc; |
55 | 54 |
56 OnPacketArrival(header.extension.transportSequenceNumber, arrival_time_ms); | 55 OnPacketArrival(header.extension.transportSequenceNumber, arrival_time_ms); |
57 } | 56 } |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // they need to be re-sent after a reordering. Removal will be handled | 146 // they need to be re-sent after a reordering. Removal will be handled |
148 // by OnPacketArrival once packets are too old. | 147 // by OnPacketArrival once packets are too old. |
149 } | 148 } |
150 if (it == packet_arrival_times_.end()) | 149 if (it == packet_arrival_times_.end()) |
151 window_start_seq_ = -1; | 150 window_start_seq_ = -1; |
152 | 151 |
153 return true; | 152 return true; |
154 } | 153 } |
155 | 154 |
156 } // namespace webrtc | 155 } // namespace webrtc |
OLD | NEW |