Commit d7cd897a authored by Simon Morlat's avatar Simon Morlat

fix invalid use of aecm_create() after webrtc update

parent af61ad59
......@@ -123,7 +123,7 @@ static void webrtc_aec_preprocess(MSFilter *f)
ms_message("Initializing WebRTC echo canceler with framesize=%i, delay_ms=%i, delay_samples=%i", s->framesize, s->delay_ms, delay_samples);
if (WebRtcAecm_Create(&s->aecmInst) < 0) {
if ((s->aecmInst = WebRtcAecm_Create()) == NULL) {
s->bypass_mode = TRUE;
ms_error("WebRtcAecm_Create(): error, entering bypass mode");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment