[Freeswitch-svn] [commit] r9801 - freeswitch/trunk/src/mod/formats/mod_local_stream

Freeswitch SVN mikej at freeswitch.org
Thu Oct 2 15:41:47 EDT 2008


Author: mikej
Date: Thu Oct  2 15:41:46 2008
New Revision: 9801

Modified:
   freeswitch/trunk/src/mod/formats/mod_local_stream/mod_local_stream.c

Log:
MODFORM-16 fix seg when no timer name specified in config file.

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	Thu Oct  2 15:41:46 2008
@@ -578,7 +578,6 @@
 	if (!SWITCH_ACCEPTABLE_INTERVAL(interval)){
 		interval = 20;
 	}
-	timer_name = argv[7] ? argv[7] : "soft";
 
 	if (!path){
 		if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
@@ -667,7 +666,7 @@
 	source->rate = rate;
 	source->interval = interval;
 	source->channels = channels;
-	source->timer_name = switch_core_strdup(source->pool, timer_name);
+	source->timer_name = switch_core_strdup(source->pool, timer_name ? timer_name : (argv[7] ? argv[7] : "soft"));
 	source->prebuf = prebuf;
 	source->stopped = 0;
 



More information about the Freeswitch-svn mailing list