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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 return std::unique_ptr<FlexfecReceiver>( | 58 return std::unique_ptr<FlexfecReceiver>( |
59 new FlexfecReceiver(config.flexfec_ssrc, config.protected_media_ssrcs[0], | 59 new FlexfecReceiver(config.flexfec_ssrc, config.protected_media_ssrcs[0], |
60 recovered_packet_callback)); | 60 recovered_packet_callback)); |
61 } | 61 } |
62 | 62 |
63 } // namespace | 63 } // namespace |
64 | 64 |
65 namespace internal { | 65 namespace internal { |
66 | 66 |
67 FlexfecReceiveStream::FlexfecReceiveStream( | 67 FlexfecReceiveStream::FlexfecReceiveStream( |
68 Config configuration, | 68 const Config& config, |
69 RecoveredPacketReceiver* recovered_packet_callback) | 69 RecoveredPacketReceiver* recovered_packet_callback) |
70 : started_(false), | 70 : started_(false), |
71 config_(configuration), | 71 config_(config), |
72 receiver_( | 72 receiver_( |
73 MaybeCreateFlexfecReceiver(config_, recovered_packet_callback)) { | 73 MaybeCreateFlexfecReceiver(config_, recovered_packet_callback)) { |
74 LOG(LS_INFO) << "FlexfecReceiveStream: " << config_.ToString(); | 74 LOG(LS_INFO) << "FlexfecReceiveStream: " << config_.ToString(); |
75 } | 75 } |
76 | 76 |
77 FlexfecReceiveStream::~FlexfecReceiveStream() { | 77 FlexfecReceiveStream::~FlexfecReceiveStream() { |
78 LOG(LS_INFO) << "~FlexfecReceiveStream: " << config_.ToString(); | 78 LOG(LS_INFO) << "~FlexfecReceiveStream: " << config_.ToString(); |
79 Stop(); | 79 Stop(); |
80 } | 80 } |
81 | 81 |
(...skipping 21 matching lines...) Expand all Loading... |
103 | 103 |
104 // TODO(brandtr): Implement this member function when we have designed the | 104 // TODO(brandtr): Implement this member function when we have designed the |
105 // stats for FlexFEC. | 105 // stats for FlexFEC. |
106 FlexfecReceiveStream::Stats FlexfecReceiveStream::GetStats() const { | 106 FlexfecReceiveStream::Stats FlexfecReceiveStream::GetStats() const { |
107 return webrtc::FlexfecReceiveStream::Stats(); | 107 return webrtc::FlexfecReceiveStream::Stats(); |
108 } | 108 } |
109 | 109 |
110 } // namespace internal | 110 } // namespace internal |
111 | 111 |
112 } // namespace webrtc | 112 } // namespace webrtc |
OLD | NEW |