fix assert when calling speech_open without a pool
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12465 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
f351453271
commit
fd721e67a4
|
@ -78,7 +78,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_speech_open(switch_speech_handle_t *
|
||||||
}
|
}
|
||||||
|
|
||||||
sh->rate = rate;
|
sh->rate = rate;
|
||||||
sh->name = switch_core_strdup(pool, module_name);
|
sh->name = switch_core_strdup(sh->memory_pool, module_name);
|
||||||
sh->samples = switch_samples_per_packet(rate, interval);
|
sh->samples = switch_samples_per_packet(rate, interval);
|
||||||
sh->samplerate = rate;
|
sh->samplerate = rate;
|
||||||
sh->native_rate = rate;
|
sh->native_rate = rate;
|
||||||
|
|
Loading…
Reference in New Issue