FS-8216 fix regression in hup_local_stream from last commit

This commit is contained in:
Anthony Minessale 2015-10-01 12:16:48 -05:00
parent f1c61f6f24
commit 7994b3dff3
1 changed files with 4 additions and 1 deletions

View 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)) {