| 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 24 matching lines...) Expand all Loading... |
| 35 } else if (config->protected_media_ssrcs.size() > 1) { | 35 } else if (config->protected_media_ssrcs.size() > 1) { |
| 36 LOG(LS_WARNING) | 36 LOG(LS_WARNING) |
| 37 << "The supplied FlexfecConfig contained multiple protected " | 37 << "The supplied FlexfecConfig contained multiple protected " |
| 38 "media streams, but our implementation currently only " | 38 "media streams, but our implementation currently only " |
| 39 "supports protecting a single media stream. This " | 39 "supports protecting a single media stream. This " |
| 40 "FlexfecReceiveStream will therefore only accept media " | 40 "FlexfecReceiveStream will therefore only accept media " |
| 41 "packets from the first supplied media stream, with SSRC " | 41 "packets from the first supplied media stream, with SSRC " |
| 42 << config->protected_media_ssrcs[0] << "."; | 42 << config->protected_media_ssrcs[0] << "."; |
| 43 config->protected_media_ssrcs.resize(1); | 43 config->protected_media_ssrcs.resize(1); |
| 44 } | 44 } |
| 45 return FlexfecReceiver::Create(config->flexfec_ssrc, | 45 return std::unique_ptr<FlexfecReceiver>(new FlexfecReceiver( |
| 46 config->protected_media_ssrcs[0], | 46 config->flexfec_ssrc, config->protected_media_ssrcs[0], |
| 47 recovered_packet_callback); | 47 recovered_packet_callback)); |
| 48 } | 48 } |
| 49 | 49 |
| 50 } // namespace | 50 } // namespace |
| 51 | 51 |
| 52 namespace internal { | 52 namespace internal { |
| 53 | 53 |
| 54 FlexfecReceiveStream::FlexfecReceiveStream( | 54 FlexfecReceiveStream::FlexfecReceiveStream( |
| 55 Config configuration, | 55 Config configuration, |
| 56 RecoveredPacketReceiver* recovered_packet_callback) | 56 RecoveredPacketReceiver* recovered_packet_callback) |
| 57 : started_(false), | 57 : started_(false), |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 // TODO(brandtr): Implement this member function when we have designed the | 92 // TODO(brandtr): Implement this member function when we have designed the |
| 93 // stats for FlexFEC. | 93 // stats for FlexFEC. |
| 94 FlexfecReceiveStream::Stats FlexfecReceiveStream::GetStats() const { | 94 FlexfecReceiveStream::Stats FlexfecReceiveStream::GetStats() const { |
| 95 return webrtc::FlexfecReceiveStream::Stats(); | 95 return webrtc::FlexfecReceiveStream::Stats(); |
| 96 } | 96 } |
| 97 | 97 |
| 98 } // namespace internal | 98 } // namespace internal |
| 99 | 99 |
| 100 } // namespace webrtc | 100 } // namespace webrtc |
| OLD | NEW |