| Index: webrtc/modules/audio_processing/echo_control_mobile_impl.cc
|
| diff --git a/webrtc/modules/audio_processing/echo_control_mobile_impl.cc b/webrtc/modules/audio_processing/echo_control_mobile_impl.cc
|
| index 0bf0e5f31ed7e97bf8ecb33c7433c94de47b4c19..9210499ad25215f2303e34a617d70a94b51be150 100644
|
| --- a/webrtc/modules/audio_processing/echo_control_mobile_impl.cc
|
| +++ b/webrtc/modules/audio_processing/echo_control_mobile_impl.cc
|
| @@ -65,11 +65,14 @@ size_t EchoControlMobile::echo_path_size_bytes() {
|
| return WebRtcAecm_echo_path_size_bytes();
|
| }
|
|
|
| -EchoControlMobileImpl::EchoControlMobileImpl(const AudioProcessing* apm,
|
| - CriticalSectionWrapper* crit)
|
| +EchoControlMobileImpl::EchoControlMobileImpl(
|
| + const AudioProcessing* apm,
|
| + CriticalSectionWrapper* crit,
|
| + rtc::ThreadChecker* render_thread_checker)
|
| : ProcessingComponent(),
|
| apm_(apm),
|
| crit_(crit),
|
| + render_thread_checker_(render_thread_checker),
|
| routing_mode_(kSpeakerphone),
|
| comfort_noise_enabled_(true),
|
| external_echo_path_(NULL),
|
| @@ -85,6 +88,7 @@ EchoControlMobileImpl::~EchoControlMobileImpl() {
|
| }
|
|
|
| int EchoControlMobileImpl::ProcessRenderAudio(const AudioBuffer* audio) {
|
| + RTC_DCHECK(render_thread_checker_->CalledOnValidThread());
|
| if (!is_component_enabled()) {
|
| return apm_->kNoError;
|
| }
|
|
|