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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 bool SendFeedback(rtcp::TransportFeedback* packet, | 34 bool SendFeedback(rtcp::TransportFeedback* packet, |
35 std::list<RtpRtcp*>* rtp_modules) { | 35 std::list<RtpRtcp*>* rtp_modules) { |
36 for (auto* rtp_module : *rtp_modules) { | 36 for (auto* rtp_module : *rtp_modules) { |
37 packet->WithPacketSenderSsrc(rtp_module->SSRC()); | 37 packet->WithPacketSenderSsrc(rtp_module->SSRC()); |
38 if (rtp_module->SendFeedbackPacket(*packet)) | 38 if (rtp_module->SendFeedbackPacket(*packet)) |
39 return true; | 39 return true; |
40 } | 40 } |
41 return false; | 41 return false; |
42 } | 42 } |
43 } | 43 } // namespace |
44 | 44 |
45 PacketRouter::PacketRouter() : transport_seq_(0) { | 45 PacketRouter::PacketRouter() : transport_seq_(0) { |
46 pacer_thread_checker_.DetachFromThread(); | 46 pacer_thread_checker_.DetachFromThread(); |
47 } | 47 } |
48 | 48 |
49 PacketRouter::~PacketRouter() { | 49 PacketRouter::~PacketRouter() { |
50 RTC_DCHECK(send_rtp_modules_.empty()); | 50 RTC_DCHECK(send_rtp_modules_.empty()); |
51 RTC_DCHECK(recv_rtp_modules_.empty()); | 51 RTC_DCHECK(recv_rtp_modules_.empty()); |
52 } | 52 } |
53 | 53 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 RTC_DCHECK(pacer_thread_checker_.CalledOnValidThread()); | 126 RTC_DCHECK(pacer_thread_checker_.CalledOnValidThread()); |
127 rtc::CritScope cs(&modules_crit_); | 127 rtc::CritScope cs(&modules_crit_); |
128 if (::webrtc::SendFeedback(packet, &recv_rtp_modules_)) | 128 if (::webrtc::SendFeedback(packet, &recv_rtp_modules_)) |
129 return true; | 129 return true; |
130 if (::webrtc::SendFeedback(packet, &send_rtp_modules_)) | 130 if (::webrtc::SendFeedback(packet, &send_rtp_modules_)) |
131 return true; | 131 return true; |
132 return false; | 132 return false; |
133 } | 133 } |
134 | 134 |
135 } // namespace webrtc | 135 } // namespace webrtc |
OLD | NEW |