| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1211 receive_streams_.find(ssrc); | 1211 receive_streams_.find(ssrc); |
| 1212 if (it == receive_streams_.end()) { | 1212 if (it == receive_streams_.end()) { |
| 1213 return false; | 1213 return false; |
| 1214 } | 1214 } |
| 1215 | 1215 |
| 1216 it->second->SetSink(sink); | 1216 it->second->SetSink(sink); |
| 1217 return true; | 1217 return true; |
| 1218 } | 1218 } |
| 1219 | 1219 |
| 1220 bool WebRtcVideoChannel2::GetStats(VideoMediaInfo* info) { | 1220 bool WebRtcVideoChannel2::GetStats(VideoMediaInfo* info) { |
| 1221 TRACE_EVENT0("webrtc", "WebRtcVideoChannel2::GetStats"); |
| 1221 info->Clear(); | 1222 info->Clear(); |
| 1222 FillSenderStats(info); | 1223 FillSenderStats(info); |
| 1223 FillReceiverStats(info); | 1224 FillReceiverStats(info); |
| 1224 webrtc::Call::Stats stats = call_->GetStats(); | 1225 webrtc::Call::Stats stats = call_->GetStats(); |
| 1225 FillBandwidthEstimationStats(stats, info); | 1226 FillBandwidthEstimationStats(stats, info); |
| 1226 if (stats.rtt_ms != -1) { | 1227 if (stats.rtt_ms != -1) { |
| 1227 for (size_t i = 0; i < info->senders.size(); ++i) { | 1228 for (size_t i = 0; i < info->senders.size(); ++i) { |
| 1228 info->senders[i].rtt_ms = stats.rtt_ms; | 1229 info->senders[i].rtt_ms = stats.rtt_ms; |
| 1229 } | 1230 } |
| 1230 } | 1231 } |
| (...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2514 rtx_mapping[video_codecs[i].codec.id] != | 2515 rtx_mapping[video_codecs[i].codec.id] != |
| 2515 fec_settings.red_payload_type) { | 2516 fec_settings.red_payload_type) { |
| 2516 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; | 2517 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; |
| 2517 } | 2518 } |
| 2518 } | 2519 } |
| 2519 | 2520 |
| 2520 return video_codecs; | 2521 return video_codecs; |
| 2521 } | 2522 } |
| 2522 | 2523 |
| 2523 } // namespace cricket | 2524 } // namespace cricket |
| OLD | NEW |