From ce5c69f63ae1c3b2f1583c98cd23698002715d85 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 30 Aug 2017 19:26:19 -0500 Subject: [PATCH] FS-10503 disable write buffer for all streaming --- src/mod/applications/mod_av/avformat.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/applications/mod_av/avformat.c b/src/mod/applications/mod_av/avformat.c index e493a59371..03b9054381 100644 --- a/src/mod/applications/mod_av/avformat.c +++ b/src/mod/applications/mod_av/avformat.c @@ -1549,6 +1549,10 @@ static switch_status_t av_file_open(switch_file_handle_t *handle, const char *pa switch_set_string(file, path); + if (handle->stream_name) { + disable_write_buffer = 1; + } + if ((ext = strrchr((char *)path, '.')) == 0) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Format\n"); return SWITCH_STATUS_GENERR;