summaryrefslogtreecommitdiff
path: root/res/res_speech.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-07-11 16:03:31 +0000
committerJoshua Colp <jcolp@digium.com>2007-07-11 16:03:31 +0000
commit406c3df40e6b94c6b8ebdf476a9610eab5b43cf7 (patch)
treeb323fa57f7b668e6043b960499afa3361799323b /res/res_speech.c
parent2162433060d581ba0eb4f90f93ab804b92a3d19c (diff)
Change the speech API to allow passing the format through to the engine.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_speech.c')
-rw-r--r--res/res_speech.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_speech.c b/res/res_speech.c
index 67dce81cf..fdcf322a6 100644
--- a/res/res_speech.c
+++ b/res/res_speech.c
@@ -185,7 +185,7 @@ struct ast_speech *ast_speech_new(char *engine_name, int format)
ast_speech_change_state(new_speech, AST_SPEECH_STATE_NOT_READY);
/* Pass ourselves to the engine so they can set us up some more and if they error out then do not create a structure */
- if (engine->create(new_speech)) {
+ if (engine->create(new_speech, format)) {
ast_mutex_destroy(&new_speech->lock);
ast_free(new_speech);
new_speech = NULL;