diff --git a/src/mod/formats/mod_local_stream/mod_local_stream.c b/src/mod/formats/mod_local_stream/mod_local_stream.c index 69986b27cb..b1bbb655fb 100644 --- a/src/mod/formats/mod_local_stream/mod_local_stream.c +++ b/src/mod/formats/mod_local_stream/mod_local_stream.c @@ -379,7 +379,10 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void } } - if (is_open) { + if (!is_open) { + switch_buffer_zero(audio_buffer); + break; + } else { int svr = 0; if (switch_core_has_video() && switch_core_file_has_video(use_fh)) {