提交 6258b721 authored 作者: Dragos Oancea's avatar Dragos Oancea

FS-11482: [http_cache] set pre_buffer_datalen to 0 on handle (crashfix)

上级 cb86e014
......@@ -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,
context->local_path,
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->channels = context->fh.channels;
handle->flags |= SWITCH_FILE_NOMUX;
handle->pre_buffer_datalen = 0;
if (switch_test_flag((&context->fh), SWITCH_FILE_NATIVE)) {
switch_set_flag_locked(handle, SWITCH_FILE_NATIVE);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论