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

Unified Diff: webrtc/call/call.cc

Issue 2851303007: Replace AudioReceiveStream::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 0297867a6fd4a713b070960da7dc55e1d22fed07..0246bba6fb7785ff76e8a01d644c8172e5d6e30c 100644
--- a/webrtc/call/call.cc
+++ b/webrtc/call/call.cc
@@ -124,6 +124,15 @@ rtclog::StreamConfig CreateRtcLogStreamConfig(
return rtclog_config;
}
+rtclog::StreamConfig CreateRtcLogStreamConfig(
+ const AudioReceiveStream::Config& config) {
+ rtclog::StreamConfig rtclog_config;
+ rtclog_config.remote_ssrc = config.rtp.remote_ssrc;
+ rtclog_config.local_ssrc = config.rtp.local_ssrc;
+ rtclog_config.rtp_extensions = config.rtp.extensions;
+ return rtclog_config;
+}
+
} // namespace
namespace internal {
@@ -594,7 +603,7 @@ webrtc::AudioReceiveStream* Call::CreateAudioReceiveStream(
const webrtc::AudioReceiveStream::Config& config) {
TRACE_EVENT0("webrtc", "Call::CreateAudioReceiveStream");
RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread());
- event_log_->LogAudioReceiveStreamConfig(config);
+ event_log_->LogAudioReceiveStreamConfig(CreateRtcLogStreamConfig(config));
AudioReceiveStream* receive_stream =
new AudioReceiveStream(transport_send_->packet_router(), config,
config_.audio_state, event_log_);
« 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