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 |
(...skipping 26 matching lines...) Expand all Loading... | |
37 | 37 |
38 private: | 38 private: |
39 const uint32_t ssrc_; | 39 const uint32_t ssrc_; |
40 | 40 |
41 rtc::CriticalSection crit_sect_; | 41 rtc::CriticalSection crit_sect_; |
42 RecoveredPacketReceiver* recovered_packet_callback_; | 42 RecoveredPacketReceiver* recovered_packet_callback_; |
43 std::unique_ptr<ForwardErrorCorrection> fec_; | 43 std::unique_ptr<ForwardErrorCorrection> fec_; |
44 // TODO(holmer): In the current version |received_packets_| is never more | 44 // TODO(holmer): In the current version |received_packets_| is never more |
45 // than one packet, since we process FEC every time a new packet | 45 // than one packet, since we process FEC every time a new packet |
46 // arrives. We should remove the list. | 46 // arrives. We should remove the list. |
47 ForwardErrorCorrection::ReceivedPacketList received_packets_; | 47 // TODO(nisse): But it looks like |
48 // UlpfecReceiverImpl::AddReceivedRedPacket may add two packets to | |
brandtr
2017/09/14 11:49:45
Right, I forgot about that! I guess it can be repl
nisse-webrtc
2017/09/14 12:55:51
Things may get easier if we merge the Add...Packet
brandtr
2017/09/14 13:14:15
In Flexfec, outside users call FlexfecReceiver::On
| |
49 // the list. | |
50 std::vector<std::unique_ptr<ForwardErrorCorrection::ReceivedPacket>> | |
51 received_packets_; | |
48 ForwardErrorCorrection::RecoveredPacketList recovered_packets_; | 52 ForwardErrorCorrection::RecoveredPacketList recovered_packets_; |
49 FecPacketCounter packet_counter_; | 53 FecPacketCounter packet_counter_; |
50 }; | 54 }; |
51 | 55 |
52 } // namespace webrtc | 56 } // namespace webrtc |
53 | 57 |
54 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_ULPFEC_RECEIVER_IMPL_H_ | 58 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_ULPFEC_RECEIVER_IMPL_H_ |
OLD | NEW |