MODFORM-16 fix seg when no timer name specified in config file.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9801 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e10c487143
commit
40fd65e713
|
@ -578,7 +578,6 @@ SWITCH_STANDARD_API(start_local_stream_function)
|
||||||
if (!SWITCH_ACCEPTABLE_INTERVAL(interval)){
|
if (!SWITCH_ACCEPTABLE_INTERVAL(interval)){
|
||||||
interval = 20;
|
interval = 20;
|
||||||
}
|
}
|
||||||
timer_name = argv[7] ? argv[7] : "soft";
|
|
||||||
|
|
||||||
if (!path){
|
if (!path){
|
||||||
if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
|
if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
|
||||||
|
@ -667,7 +666,7 @@ SWITCH_STANDARD_API(start_local_stream_function)
|
||||||
source->rate = rate;
|
source->rate = rate;
|
||||||
source->interval = interval;
|
source->interval = interval;
|
||||||
source->channels = channels;
|
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->prebuf = prebuf;
|
||||||
source->stopped = 0;
|
source->stopped = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue