Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/ulpfec_receiver_impl.h

Issue 3012243002: Change ForwardErrorCorrection class to accept one received packet at a time. (Closed)
Patch Set: Fix compilation errors, including tests. Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698