| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 parsed_packet.size()); | 124 parsed_packet.size()); |
| 125 received_packet->pkt->length = parsed_packet.size(); | 125 received_packet->pkt->length = parsed_packet.size(); |
| 126 } | 126 } |
| 127 received_packets_.push_back(std::move(received_packet)); | 127 received_packets_.push_back(std::move(received_packet)); |
| 128 ++packet_counter_.num_packets; | 128 ++packet_counter_.num_packets; |
| 129 | 129 |
| 130 return true; | 130 return true; |
| 131 } | 131 } |
| 132 | 132 |
| 133 // Note that the implementation of this member function and the implementation | 133 // Note that the implementation of this member function and the implementation |
| 134 // in FecReceiver::ProcessReceivedFec() are slightly different. | 134 // in UlpfecReceiver::ProcessReceivedFec() are slightly different. |
| 135 // This implementation only returns _recovered_ media packets through the | 135 // This implementation only returns _recovered_ media packets through the |
| 136 // callback, whereas the implementation in FecReceiver returns _all inserted_ | 136 // callback, whereas the implementation in UlpfecReceiver returns _all inserted_ |
| 137 // media packets through the callback. The latter behaviour makes sense | 137 // media packets through the callback. The latter behaviour makes sense |
| 138 // for ULPFEC, since the ULPFEC receiver is owned by the RtpStreamReceiver. | 138 // for ULPFEC, since the ULPFEC receiver is owned by the RtpStreamReceiver. |
| 139 // Here, however, the received media pipeline is more decoupled from the | 139 // Here, however, the received media pipeline is more decoupled from the |
| 140 // FlexFEC decoder, and we therefore do not interfere with the reception | 140 // FlexFEC decoder, and we therefore do not interfere with the reception |
| 141 // of non-recovered media packets. | 141 // of non-recovered media packets. |
| 142 bool FlexfecReceiverImpl::ProcessReceivedPackets() { | 142 bool FlexfecReceiverImpl::ProcessReceivedPackets() { |
| 143 RTC_DCHECK(sequence_checker_.CalledSequentially()); | 143 RTC_DCHECK(sequence_checker_.CalledSequentially()); |
| 144 | 144 |
| 145 // Decode. | 145 // Decode. |
| 146 if (!received_packets_.empty()) { | 146 if (!received_packets_.empty()) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 169 ss << "Recovered media packet with SSRC: " << media_ssrc | 169 ss << "Recovered media packet with SSRC: " << media_ssrc |
| 170 << " from FlexFEC stream with SSRC: " << flexfec_ssrc_ << "."; | 170 << " from FlexFEC stream with SSRC: " << flexfec_ssrc_ << "."; |
| 171 LOG(LS_INFO) << ss.str(); | 171 LOG(LS_INFO) << ss.str(); |
| 172 last_recovered_packet_ms_ = now_ms; | 172 last_recovered_packet_ms_ = now_ms; |
| 173 } | 173 } |
| 174 } | 174 } |
| 175 return true; | 175 return true; |
| 176 } | 176 } |
| 177 | 177 |
| 178 } // namespace webrtc | 178 } // namespace webrtc |
| OLD | NEW |