[mod_native_file] set SWITCH_FILE_NOMUX to prevent overflow in core (we should not channel mux native files)

This commit is contained in:
Dragos Oancea 2020-01-29 19:06:48 +00:00
parent dc2b43fb74
commit f97892bfd9
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ static switch_status_t native_file_file_open(switch_file_handle_t *handle, const
handle->speed = 0; handle->speed = 0;
handle->private_info = context; handle->private_info = context;
handle->flags |= SWITCH_FILE_NATIVE; handle->flags |= SWITCH_FILE_NATIVE;
handle->flags |= SWITCH_FILE_NOMUX;
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Opening File [%s] %dhz\n", path, handle->samplerate); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Opening File [%s] %dhz\n", path, handle->samplerate);
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;