Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
achaloyan committed May 18, 2023
1 parent c14d33d commit 294c1b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app-unimrcp/app_mrcprecog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions app-unimrcp/app_synthandrecog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 294c1b6

Please sign in to comment.