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

fail over to default if desired stream is not found

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13185 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 c66dc3de
...@@ -301,11 +301,12 @@ static switch_status_t local_stream_file_open(switch_file_handle_t *handle, cons ...@@ -301,11 +301,12 @@ static switch_status_t local_stream_file_open(switch_file_handle_t *handle, cons
return SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE;
} }
switch_mutex_lock(globals.mutex);
top: top:
alt_path = switch_mprintf("%s/%d", path, handle->samplerate); alt_path = switch_mprintf("%s/%d", path, handle->samplerate);
switch_mutex_lock(globals.mutex);
if ((source = switch_core_hash_find(globals.source_hash, alt_path))) { if ((source = switch_core_hash_find(globals.source_hash, alt_path))) {
path = alt_path; path = alt_path;
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论