Commit 75d634bc authored by Thierry Reding's avatar Thierry Reding Committed by Yann Diorcet
Browse files

Do not destroy uninitialized echo canceller

parent 4cee8324
......@@ -389,7 +389,7 @@ int audio_stream_start_full(AudioStream *stream, RtpProfile *profile, const char
ms_filter_call_method(stream->soundwrite,MS_FILTER_SET_NCHANNELS, &tmp);
/*configure the echo canceller if required */
if (!use_ec) {
if (!use_ec && stream->ec != NULL) {
ms_filter_destroy(stream->ec);
stream->ec=NULL;
}
......
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