Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(899)

Unified Diff: webrtc/call/call.cc

Issue 2856063003: Replace AudioSendStream::Config with rtclog::StreamConfig. (Closed)
Patch Set: Rebased Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/call/call.cc
diff --git a/webrtc/call/call.cc b/webrtc/call/call.cc
index 0246bba6fb7785ff76e8a01d644c8172e5d6e30c..87e41b0b41070c9a014844e29195ffc96cf51a07 100644
--- a/webrtc/call/call.cc
+++ b/webrtc/call/call.cc
@@ -133,6 +133,18 @@ rtclog::StreamConfig CreateRtcLogStreamConfig(
return rtclog_config;
}
+rtclog::StreamConfig CreateRtcLogStreamConfig(
+ const AudioSendStream::Config& config) {
+ rtclog::StreamConfig rtclog_config;
+ rtclog_config.local_ssrc = config.rtp.ssrc;
+ rtclog_config.rtp_extensions = config.rtp.extensions;
+ if (config.send_codec_spec) {
+ rtclog_config.codecs.emplace_back(config.send_codec_spec->format.name,
+ config.send_codec_spec->payload_type, 0);
+ }
+ return rtclog_config;
+}
+
} // namespace
namespace internal {
@@ -549,7 +561,7 @@ webrtc::AudioSendStream* Call::CreateAudioSendStream(
const webrtc::AudioSendStream::Config& config) {
TRACE_EVENT0("webrtc", "Call::CreateAudioSendStream");
RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread());
- event_log_->LogAudioSendStreamConfig(config);
+ event_log_->LogAudioSendStreamConfig(CreateRtcLogStreamConfig(config));
AudioSendStream* send_stream = new AudioSendStream(
config, config_.audio_state, &worker_queue_, transport_send_.get(),
bitrate_allocator_.get(), event_log_, call_stats_->rtcp_rtt_stats());
« no previous file with comments | « no previous file | webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698