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:
Michael Jerris 2009-03-05 16:44:28 +00:00
parent f351453271
commit fd721e67a4
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_speech_open(switch_speech_handle_t *
}
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->samplerate = rate;
sh->native_rate = rate;