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 |
11 #include "webrtc/modules/pacing/packet_router.h" | 11 #include "webrtc/modules/pacing/packet_router.h" |
12 | 12 |
13 #include "webrtc/base/atomicops.h" | |
14 #include "webrtc/base/checks.h" | |
15 #include "webrtc/base/timeutils.h" | |
16 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 13 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 14 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
18 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" | 15 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" |
| 16 #include "webrtc/rtc_base/atomicops.h" |
| 17 #include "webrtc/rtc_base/checks.h" |
| 18 #include "webrtc/rtc_base/timeutils.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 PacketRouter::PacketRouter() | 22 PacketRouter::PacketRouter() |
23 : last_remb_time_ms_(rtc::TimeMillis()), | 23 : last_remb_time_ms_(rtc::TimeMillis()), |
24 last_send_bitrate_bps_(0), | 24 last_send_bitrate_bps_(0), |
25 transport_seq_(0) {} | 25 transport_seq_(0) {} |
26 | 26 |
27 PacketRouter::~PacketRouter() { | 27 PacketRouter::~PacketRouter() { |
28 RTC_DCHECK(rtp_send_modules_.empty()); | 28 RTC_DCHECK(rtp_send_modules_.empty()); |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 } | 216 } |
217 for (auto* rtp_module : rtp_receive_modules_) { | 217 for (auto* rtp_module : rtp_receive_modules_) { |
218 packet->SetSenderSsrc(rtp_module->SSRC()); | 218 packet->SetSenderSsrc(rtp_module->SSRC()); |
219 if (rtp_module->SendFeedbackPacket(*packet)) | 219 if (rtp_module->SendFeedbackPacket(*packet)) |
220 return true; | 220 return true; |
221 } | 221 } |
222 return false; | 222 return false; |
223 } | 223 } |
224 | 224 |
225 } // namespace webrtc | 225 } // namespace webrtc |
OLD | NEW |