[Freeswitch-svn] [commit] r13185 - freeswitch/trunk/src/mod/formats/mod_local_stream
FreeSWITCH SVN
anthm at freeswitch.org
Tue Apr 28 20:23:26 PDT 2009
Author: anthm
Date: Tue Apr 28 22:23:26 2009
New Revision: 13185
Log:
fail over to default if desired stream is not found
Modified:
freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c
Modified: freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c
==============================================================================
--- freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c (original)
+++ freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c Tue Apr 28 22:23:26 2009
@@ -301,11 +301,12 @@
return SWITCH_STATUS_FALSE;
}
+ switch_mutex_lock(globals.mutex);
+
top:
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))) {
path = alt_path;
} else {
More information about the Freeswitch-svn
mailing list