| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 receiver_config->set_rtcp_mode(ConvertRtcpMode(config.rtp.rtcp_mode)); | 290 receiver_config->set_rtcp_mode(ConvertRtcpMode(config.rtp.rtcp_mode)); |
| 291 receiver_config->set_remb(config.rtp.remb); | 291 receiver_config->set_remb(config.rtp.remb); |
| 292 | 292 |
| 293 for (const auto& kv : config.rtp.rtx_payload_types) { | 293 for (const auto& kv : config.rtp.rtx_payload_types) { |
| 294 rtclog::RtxMap* rtx = receiver_config->add_rtx_map(); | 294 rtclog::RtxMap* rtx = receiver_config->add_rtx_map(); |
| 295 rtx->set_payload_type(kv.first); | 295 rtx->set_payload_type(kv.first); |
| 296 rtx->mutable_config()->set_rtx_ssrc(config.rtp.rtx_ssrc); | 296 rtx->mutable_config()->set_rtx_ssrc(config.rtp.rtx_ssrc); |
| 297 rtx->mutable_config()->set_rtx_payload_type(kv.second); | 297 rtx->mutable_config()->set_rtx_payload_type(kv.second); |
| 298 } | 298 } |
| 299 | 299 |
| 300 #if 0 |
| 300 for (const auto& e : config.rtp.extensions) { | 301 for (const auto& e : config.rtp.extensions) { |
| 301 rtclog::RtpHeaderExtension* extension = | 302 rtclog::RtpHeaderExtension* extension = |
| 302 receiver_config->add_header_extensions(); | 303 receiver_config->add_header_extensions(); |
| 303 extension->set_name(e.uri); | 304 extension->set_name(e.uri); |
| 304 extension->set_id(e.id); | 305 extension->set_id(e.id); |
| 305 } | 306 } |
| 307 #endif |
| 306 | 308 |
| 307 for (const auto& d : config.decoders) { | 309 for (const auto& d : config.decoders) { |
| 308 rtclog::DecoderConfig* decoder = receiver_config->add_decoders(); | 310 rtclog::DecoderConfig* decoder = receiver_config->add_decoders(); |
| 309 decoder->set_name(d.payload_name); | 311 decoder->set_name(d.payload_name); |
| 310 decoder->set_payload_type(d.payload_type); | 312 decoder->set_payload_type(d.payload_type); |
| 311 } | 313 } |
| 312 StoreEvent(&event); | 314 StoreEvent(&event); |
| 313 } | 315 } |
| 314 | 316 |
| 315 void RtcEventLogImpl::LogVideoSendStreamConfig( | 317 void RtcEventLogImpl::LogVideoSendStreamConfig( |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 #else | 614 #else |
| 613 return std::unique_ptr<RtcEventLog>(new RtcEventLogNullImpl()); | 615 return std::unique_ptr<RtcEventLog>(new RtcEventLogNullImpl()); |
| 614 #endif // ENABLE_RTC_EVENT_LOG | 616 #endif // ENABLE_RTC_EVENT_LOG |
| 615 } | 617 } |
| 616 | 618 |
| 617 std::unique_ptr<RtcEventLog> RtcEventLog::CreateNull() { | 619 std::unique_ptr<RtcEventLog> RtcEventLog::CreateNull() { |
| 618 return std::unique_ptr<RtcEventLog>(new RtcEventLogNullImpl()); | 620 return std::unique_ptr<RtcEventLog>(new RtcEventLogNullImpl()); |
| 619 } | 621 } |
| 620 | 622 |
| 621 } // namespace webrtc | 623 } // namespace webrtc |
| OLD | NEW |