mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 09:17:34 +00:00
FS-10503 disable write buffer for all streaming
This commit is contained in:
parent
951b6c1464
commit
ce5c69f63a
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user