aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_speech.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-31 15:54:32 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-31 15:54:32 +0000
commit65bb33a46b634367b1b8ddcfe1ea90821abe41c6 (patch)
tree255c97a6d30311d6479c84d82497b0bd5581771a /res/res_speech.c
parente186f8cc5642874805252b86ae8919120e527b56 (diff)
Merged revisions 81406 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r81406 | file | 2007-08-31 12:53:16 -0300 (Fri, 31 Aug 2007) | 2 lines Make it the engine's responsible to check for the presence of results. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81407 f38db490-d61c-443f-a65b-d21fe96a405b
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 497c721ac..b6e743747 100644
--- a/res/res_speech.c
+++ b/res/res_speech.c
@@ -92,7 +92,7 @@ int ast_speech_grammar_unload(struct ast_speech *speech, char *grammar_name)
/*! \brief Return the results of a recognition from the speech structure */
struct ast_speech_result *ast_speech_results_get(struct ast_speech *speech)
{
- return ((speech->engine->get && ast_test_flag(speech, AST_SPEECH_HAVE_RESULTS)) ? speech->engine->get(speech) : NULL);
+ return (speech->engine->get ? speech->engine->get(speech) : NULL);
}
/*! \brief Free a list of results */