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/fec_receiver_impl.h" | 11 #include "webrtc/modules/rtp_rtcp/source/fec_receiver_impl.h" |
12 | 12 |
13 #include <assert.h> | 13 #include <assert.h> |
14 | 14 |
15 #include "webrtc/base/logging.h" | 15 #include "webrtc/base/logging.h" |
16 #include "webrtc/base/scoped_ptr.h" | 16 #include "webrtc/base/scoped_ptr.h" |
17 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 17 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
18 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h" | 18 #include "webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h" |
19 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" | 19 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
20 | 20 |
21 // RFC 5109 | 21 // RFC 5109 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 FecReceiver* FecReceiver::Create(RtpData* callback) { | 24 FecReceiver* FecReceiver::Create(RtpData* callback) { |
25 return new FecReceiverImpl(callback); | 25 return new FecReceiverImpl(callback); |
26 } | 26 } |
27 | 27 |
28 FecReceiverImpl::FecReceiverImpl(RtpData* callback) | 28 FecReceiverImpl::FecReceiverImpl(RtpData* callback) |
29 : crit_sect_(CriticalSectionWrapper::CreateCriticalSection()), | 29 : crit_sect_(CriticalSectionWrapper::CreateCriticalSection()), |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 return -1; | 252 return -1; |
253 } | 253 } |
254 crit_sect_->Enter(); | 254 crit_sect_->Enter(); |
255 (*it)->returned = true; | 255 (*it)->returned = true; |
256 } | 256 } |
257 crit_sect_->Leave(); | 257 crit_sect_->Leave(); |
258 return 0; | 258 return 0; |
259 } | 259 } |
260 | 260 |
261 } // namespace webrtc | 261 } // namespace webrtc |
OLD | NEW |