提交 ce5c69f6 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-10503 disable write buffer for all streaming

上级 951b6c14
...@@ -1549,6 +1549,10 @@ static switch_status_t av_file_open(switch_file_handle_t *handle, const char *pa ...@@ -1549,6 +1549,10 @@ static switch_status_t av_file_open(switch_file_handle_t *handle, const char *pa
switch_set_string(file, path); switch_set_string(file, path);
if (handle->stream_name) {
disable_write_buffer = 1;
}
if ((ext = strrchr((char *)path, '.')) == 0) { if ((ext = strrchr((char *)path, '.')) == 0) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Format\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Format\n");
return SWITCH_STATUS_GENERR; return SWITCH_STATUS_GENERR;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论