mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 09:17:34 +00:00
Merge pull request #1678 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11482-crashfix-http_cache to master
* commit '6258b721c9fef73da1868eef9ff561fcf9dcf2c6': FS-11482: [http_cache] set pre_buffer_datalen to 0 on handle (crashfix)
This commit is contained in:
commit
7c4dc685fa
@ -1733,6 +1733,7 @@ static switch_status_t http_cache_file_open(switch_file_handle_t *handle, const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
context->fh.pre_buffer_datalen = handle->pre_buffer_datalen;
|
||||||
if ((status = switch_core_file_open(&context->fh,
|
if ((status = switch_core_file_open(&context->fh,
|
||||||
context->local_path,
|
context->local_path,
|
||||||
handle->channels,
|
handle->channels,
|
||||||
@ -1754,6 +1755,7 @@ static switch_status_t http_cache_file_open(switch_file_handle_t *handle, const
|
|||||||
handle->interval = context->fh.interval;
|
handle->interval = context->fh.interval;
|
||||||
handle->channels = context->fh.channels;
|
handle->channels = context->fh.channels;
|
||||||
handle->flags |= SWITCH_FILE_NOMUX;
|
handle->flags |= SWITCH_FILE_NOMUX;
|
||||||
|
handle->pre_buffer_datalen = 0;
|
||||||
|
|
||||||
if (switch_test_flag((&context->fh), SWITCH_FILE_NATIVE)) {
|
if (switch_test_flag((&context->fh), SWITCH_FILE_NATIVE)) {
|
||||||
switch_set_flag_locked(handle, SWITCH_FILE_NATIVE);
|
switch_set_flag_locked(handle, SWITCH_FILE_NATIVE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user