]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10503 disable write buffer for all streaming
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 31 Aug 2017 00:26:19 +0000 (19:26 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 31 Aug 2017 00:26:19 +0000 (19:26 -0500)
src/mod/applications/mod_av/avformat.c

index e493a593710ad984cc067f4ba55a0590bb7b8418..03b9054381c56bdf5dde917bfde0f75c2cc5640b 100644 (file)
@@ -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;