From 294c1b6f240f01b3df9fa7b75489f318b8ee7f13 Mon Sep 17 00:00:00 2001 From: Arsen Chaloyan Date: Thu, 18 May 2023 09:54:15 -0700 Subject: [PATCH] Code formatting --- app-unimrcp/app_mrcprecog.c | 6 +++--- app-unimrcp/app_synthandrecog.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app-unimrcp/app_mrcprecog.c b/app-unimrcp/app_mrcprecog.c index 4f6509d..7c62493 100644 --- a/app-unimrcp/app_mrcprecog.c +++ b/app-unimrcp/app_mrcprecog.c @@ -417,7 +417,7 @@ static int recog_channel_get_results(speech_channel_t *schannel, const char **co if (r == NULL) { ast_log(LOG_ERROR, "(%s) Recognizer data struct is NULL\n", schannel->name); - + apr_thread_mutex_unlock(schannel->mutex); return -1; } @@ -497,7 +497,7 @@ static int recog_channel_start(speech_channel_t *schannel, const char *name, int ast_log(LOG_ERROR, "recog_channel_start: unknown channel error!\n"); return -1; } - + apr_thread_mutex_lock(schannel->mutex); if (schannel->state != SPEECH_CHANNEL_READY) { @@ -837,7 +837,7 @@ static apt_bool_t recog_stream_read(mpf_audio_stream_t *stream, mpf_frame_t *fra { speech_channel_t *schannel; - if (stream != NULL) + if (stream) schannel = (speech_channel_t *)stream->obj; else schannel = NULL; diff --git a/app-unimrcp/app_synthandrecog.c b/app-unimrcp/app_synthandrecog.c index fd0999d..16b6430 100644 --- a/app-unimrcp/app_synthandrecog.c +++ b/app-unimrcp/app_synthandrecog.c @@ -208,7 +208,7 @@ static apt_bool_t speech_on_session_terminate(mrcp_application_t *application, m } ast_log(LOG_DEBUG, "(%s) speech_on_session_terminate\n", schannel->name); - + if (schannel->dtmf_generator != NULL) { ast_log(LOG_DEBUG, "(%s) DTMF generator destroyed\n", schannel->name); mpf_dtmf_generator_destroy(schannel->dtmf_generator); @@ -1177,7 +1177,7 @@ static int synthandrecog_options_parse(char *str, sar_options_t *options, apr_po char *s; char *name, *value; - if (!str) + if (!str) return 0; if ((options->recog_hfs = apr_hash_make(pool)) == NULL) {