From: Anthony Minessale Date: Thu, 1 Oct 2015 17:16:48 +0000 (-0500) Subject: FS-8216 fix regression in hup_local_stream from last commit X-Git-Tag: v1.6.3~1^2~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7994b3dff3acea8285a8dd6a024d4a555547effc;p=thirdparty%2Ffreeswitch.git FS-8216 fix regression in hup_local_stream from last commit --- 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)) {