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 28 matching lines...) Expand all Loading... |
39 packet_router_(packet_router), | 39 packet_router_(packet_router), |
40 last_process_time_ms_(-1), | 40 last_process_time_ms_(-1), |
41 media_ssrc_(0), | 41 media_ssrc_(0), |
42 feedback_sequence_(0), | 42 feedback_sequence_(0), |
43 window_start_seq_(-1), | 43 window_start_seq_(-1), |
44 send_interval_ms_(kDefaultSendIntervalMs) {} | 44 send_interval_ms_(kDefaultSendIntervalMs) {} |
45 | 45 |
46 RemoteEstimatorProxy::~RemoteEstimatorProxy() {} | 46 RemoteEstimatorProxy::~RemoteEstimatorProxy() {} |
47 | 47 |
48 void RemoteEstimatorProxy::IncomingPacketFeedbackVector( | 48 void RemoteEstimatorProxy::IncomingPacketFeedbackVector( |
49 const std::vector<PacketInfo>& packet_feedback_vector) { | 49 const std::vector<PacketFeedback>& packet_feedback_vector) { |
50 rtc::CritScope cs(&lock_); | 50 rtc::CritScope cs(&lock_); |
51 for (PacketInfo info : packet_feedback_vector) | 51 for (PacketFeedback packet : packet_feedback_vector) |
52 OnPacketArrival(info.sequence_number, info.arrival_time_ms); | 52 OnPacketArrival(packet.sequence_number, packet.arrival_time_ms); |
53 } | 53 } |
54 | 54 |
55 void RemoteEstimatorProxy::IncomingPacket(int64_t arrival_time_ms, | 55 void RemoteEstimatorProxy::IncomingPacket(int64_t arrival_time_ms, |
56 size_t payload_size, | 56 size_t payload_size, |
57 const RTPHeader& header) { | 57 const RTPHeader& header) { |
58 if (!header.extension.hasTransportSequenceNumber) { | 58 if (!header.extension.hasTransportSequenceNumber) { |
59 LOG(LS_WARNING) << "RemoteEstimatorProxy: Incoming packet " | 59 LOG(LS_WARNING) << "RemoteEstimatorProxy: Incoming packet " |
60 "is missing the transport sequence number extension!"; | 60 "is missing the transport sequence number extension!"; |
61 return; | 61 return; |
62 } | 62 } |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // Note: Don't erase items from packet_arrival_times_ after sending, in case | 197 // Note: Don't erase items from packet_arrival_times_ after sending, in case |
198 // they need to be re-sent after a reordering. Removal will be handled | 198 // they need to be re-sent after a reordering. Removal will be handled |
199 // by OnPacketArrival once packets are too old. | 199 // by OnPacketArrival once packets are too old. |
200 window_start_seq_ = it->first + 1; | 200 window_start_seq_ = it->first + 1; |
201 } | 201 } |
202 | 202 |
203 return true; | 203 return true; |
204 } | 204 } |
205 | 205 |
206 } // namespace webrtc | 206 } // namespace webrtc |
OLD | NEW |