diff --git a/webrtc/modules/audio_processing/aecm/echo_control_mobile.c b/webrtc/modules/audio_processing/aecm/echo_control_mobile.c index 881f7a55e..7716567fc 100644 --- a/webrtc/modules/audio_processing/aecm/echo_control_mobile.c +++ b/webrtc/modules/audio_processing/aecm/echo_control_mobile.c @@ -95,6 +95,8 @@ WebRtc_Word32 WebRtcAecm_Create(void **aecmInst) return -1; } + WebRtcSpl_Init(); + if (WebRtcAecm_CreateCore(&aecm->aecmCore) == -1) { WebRtcAecm_Free(aecm); @@ -111,8 +113,6 @@ WebRtc_Word32 WebRtcAecm_Create(void **aecmInst) return -1; } - WebRtcSpl_Init(); - aecm->initFlag = 0; aecm->lastError = 0;