OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 private: | 51 private: |
52 bool AddReceivedPacket(const uint8_t* packet, size_t packet_length); | 52 bool AddReceivedPacket(const uint8_t* packet, size_t packet_length); |
53 bool ProcessReceivedPackets(); | 53 bool ProcessReceivedPackets(); |
54 | 54 |
55 // Config. | 55 // Config. |
56 const uint32_t ssrc_; | 56 const uint32_t ssrc_; |
57 const uint32_t protected_media_ssrc_; | 57 const uint32_t protected_media_ssrc_; |
58 | 58 |
59 // Erasure code interfacing and callback. | 59 // Erasure code interfacing and callback. |
60 std::unique_ptr<ForwardErrorCorrection> erasure_code_; | 60 std::unique_ptr<ForwardErrorCorrection> erasure_code_ |
61 ForwardErrorCorrection::ReceivedPacketList received_packets_; | 61 GUARDED_BY(sequence_checker_); |
62 ForwardErrorCorrection::RecoveredPacketList recovered_packets_; | 62 ForwardErrorCorrection::ReceivedPacketList received_packets_ |
63 RecoveredPacketReceiver* const callback_; | 63 GUARDED_BY(sequence_checker_); |
| 64 ForwardErrorCorrection::RecoveredPacketList recovered_packets_ |
| 65 GUARDED_BY(sequence_checker_); |
| 66 RecoveredPacketReceiver* const callback_ GUARDED_BY(sequence_checker_); |
64 | 67 |
65 // Logging and stats. | 68 // Logging and stats. |
66 Clock* const clock_; | 69 Clock* const clock_; |
67 int64_t last_recovered_packet_ms_; | 70 int64_t last_recovered_packet_ms_ GUARDED_BY(sequence_checker_); |
68 FecPacketCounter packet_counter_; | 71 FecPacketCounter packet_counter_ GUARDED_BY(sequence_checker_); |
69 | 72 |
70 rtc::SequencedTaskChecker sequence_checker_; | 73 rtc::SequencedTaskChecker sequence_checker_; |
71 }; | 74 }; |
72 | 75 |
73 } // namespace webrtc | 76 } // namespace webrtc |
74 | 77 |
75 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_FLEXFEC_RECEIVER_H_ | 78 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_FLEXFEC_RECEIVER_H_ |
OLD | NEW |