]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8216 fix regression in hup_local_stream from last commit
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 1 Oct 2015 17:16:48 +0000 (12:16 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 1 Oct 2015 17:16:48 +0000 (12:16 -0500)
src/mod/formats/mod_local_stream/mod_local_stream.c

index 69986b27cb25048864a88738658ce45398547cb1..b1bbb655fb86f90bf9da1c12d2d041b4f47135f1 100644 (file)
@@ -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)) {