| 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 26 matching lines...) Expand all Loading... |
| 37 ss << "{payload_type: " << payload_type; | 37 ss << "{payload_type: " << payload_type; |
| 38 ss << ", remote_ssrc: " << remote_ssrc; | 38 ss << ", remote_ssrc: " << remote_ssrc; |
| 39 ss << ", local_ssrc: " << local_ssrc; | 39 ss << ", local_ssrc: " << local_ssrc; |
| 40 ss << ", protected_media_ssrcs: ["; | 40 ss << ", protected_media_ssrcs: ["; |
| 41 size_t i = 0; | 41 size_t i = 0; |
| 42 for (; i + 1 < protected_media_ssrcs.size(); ++i) | 42 for (; i + 1 < protected_media_ssrcs.size(); ++i) |
| 43 ss << protected_media_ssrcs[i] << ", "; | 43 ss << protected_media_ssrcs[i] << ", "; |
| 44 if (!protected_media_ssrcs.empty()) | 44 if (!protected_media_ssrcs.empty()) |
| 45 ss << protected_media_ssrcs[i]; | 45 ss << protected_media_ssrcs[i]; |
| 46 ss << "], transport_cc: " << (transport_cc ? "on" : "off"); | 46 ss << "], transport_cc: " << (transport_cc ? "on" : "off"); |
| 47 ss << ", rtp_header_extensions: ["; | 47 ss << "}"; |
| 48 i = 0; | |
| 49 for (; i + 1 < rtp_header_extensions.size(); ++i) | |
| 50 ss << rtp_header_extensions[i].ToString() << ", "; | |
| 51 if (!rtp_header_extensions.empty()) | |
| 52 ss << rtp_header_extensions[i].ToString(); | |
| 53 ss << "]}"; | |
| 54 return ss.str(); | 48 return ss.str(); |
| 55 } | 49 } |
| 56 | 50 |
| 57 bool FlexfecReceiveStream::Config::IsCompleteAndEnabled() const { | 51 bool FlexfecReceiveStream::Config::IsCompleteAndEnabled() const { |
| 58 // Check if FlexFEC is enabled. | 52 // Check if FlexFEC is enabled. |
| 59 if (payload_type < 0) | 53 if (payload_type < 0) |
| 60 return false; | 54 return false; |
| 61 // Do we have the necessary SSRC information? | 55 // Do we have the necessary SSRC information? |
| 62 if (remote_ssrc == 0) | 56 if (remote_ssrc == 0) |
| 63 return false; | 57 return false; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 FlexfecReceiveStreamImpl::Stats FlexfecReceiveStreamImpl::GetStats() const { | 179 FlexfecReceiveStreamImpl::Stats FlexfecReceiveStreamImpl::GetStats() const { |
| 186 return FlexfecReceiveStream::Stats(); | 180 return FlexfecReceiveStream::Stats(); |
| 187 } | 181 } |
| 188 | 182 |
| 189 const FlexfecReceiveStream::Config& FlexfecReceiveStreamImpl::GetConfig() | 183 const FlexfecReceiveStream::Config& FlexfecReceiveStreamImpl::GetConfig() |
| 190 const { | 184 const { |
| 191 return config_; | 185 return config_; |
| 192 } | 186 } |
| 193 | 187 |
| 194 } // namespace webrtc | 188 } // namespace webrtc |
| OLD | NEW |