From 7994b3dff3acea8285a8dd6a024d4a555547effc Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 1 Oct 2015 12:16:48 -0500 Subject: [PATCH] FS-8216 fix regression in hup_local_stream from last commit --- src/mod/formats/mod_local_stream/mod_local_stream.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)) {