OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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/rtp_rtcp/source/ulpfec_receiver_impl.h" | 11 #include "webrtc/modules/rtp_rtcp/source/ulpfec_receiver_impl.h" |
12 | 12 |
13 #include <memory> | 13 #include <memory> |
14 #include <utility> | 14 #include <utility> |
15 | 15 |
| 16 #include "webrtc/base/checks.h" |
| 17 #include "webrtc/base/logging.h" |
16 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 18 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
17 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h" | 19 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h" |
18 #include "webrtc/rtc_base/checks.h" | |
19 #include "webrtc/rtc_base/logging.h" | |
20 #include "webrtc/system_wrappers/include/clock.h" | 20 #include "webrtc/system_wrappers/include/clock.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 UlpfecReceiver* UlpfecReceiver::Create(uint32_t ssrc, | 24 UlpfecReceiver* UlpfecReceiver::Create(uint32_t ssrc, |
25 RecoveredPacketReceiver* callback) { | 25 RecoveredPacketReceiver* callback) { |
26 return new UlpfecReceiverImpl(ssrc, callback); | 26 return new UlpfecReceiverImpl(ssrc, callback); |
27 } | 27 } |
28 | 28 |
29 UlpfecReceiverImpl::UlpfecReceiverImpl(uint32_t ssrc, | 29 UlpfecReceiverImpl::UlpfecReceiverImpl(uint32_t ssrc, |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 recovered_packet_callback_->OnRecoveredPacket(packet->data, | 245 recovered_packet_callback_->OnRecoveredPacket(packet->data, |
246 packet->length); | 246 packet->length); |
247 crit_sect_.Enter(); | 247 crit_sect_.Enter(); |
248 recovered_packet->returned = true; | 248 recovered_packet->returned = true; |
249 } | 249 } |
250 crit_sect_.Leave(); | 250 crit_sect_.Leave(); |
251 return 0; | 251 return 0; |
252 } | 252 } |
253 | 253 |
254 } // namespace webrtc | 254 } // namespace webrtc |
OLD | NEW |