Index: content/renderer/media/media_stream_audio_processor.cc |
diff --git a/content/renderer/media/media_stream_audio_processor.cc b/content/renderer/media/media_stream_audio_processor.cc |
index 6f7afe612a4a9d74c9cf555243ed1840be176828..b78d7d57a0dbf1eddb73a1f0ce4c994c15303be0 100644 |
--- a/content/renderer/media/media_stream_audio_processor.cc |
+++ b/content/renderer/media/media_stream_audio_processor.cc |
@@ -667,12 +667,13 @@ void MediaStreamAudioProcessor::InitializeAudioProcessingModule( |
// Enable the audio processing components. |
webrtc::AudioProcessing::Config apm_config; |
+ if (playout_data_source_) { |
+ playout_data_source_->AddPlayoutSink(this); |
+ } |
+ |
if (echo_cancellation) { |
EnableEchoCancellation(audio_processing_.get()); |
- if (playout_data_source_) |
- playout_data_source_->AddPlayoutSink(this); |
- |
// Prepare for logging echo information. If there are data remaining in |
// |echo_information_| we simply discard it. |
echo_information_.reset(new EchoInformation()); |