From 5db2de67c7f83bcc4ad2ea33cf81203619450e6e Mon Sep 17 00:00:00 2001 From: sungrae jo Date: Thu, 30 Jul 2020 13:36:06 +0900 Subject: [PATCH] Fixed enum value for vc_tts_utterance_status_e Change-Id: I01fe0b9f25be912764cc8a2aeb98be053e97e8a3 Signed-off-by: sungrae jo --- client/vc_mgr.c | 2 +- include/voice_control_common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/vc_mgr.c b/client/vc_mgr.c index 7acde3c..3caa9ae 100755 --- a/client/vc_mgr.c +++ b/client/vc_mgr.c @@ -4359,7 +4359,7 @@ int vc_mgr_send_utterance_status(int pid, int utt_id, vc_tts_utterance_status_e return VC_ERROR_PERMISSION_DENIED; } - if (VC_TTS_UTTERANCE_NONE > utt_status || VC_TTS_UTTERANCE_CANCELED < utt_status) { + if (VC_TTS_UTTERANCE_NONE > utt_status || VC_TTS_UTTERANCE_CANCELED < utt_status || 0 == utt_status) { SLOG(LOG_ERROR, TAG_VCM, "[ERROR] utt_status is not valid. (%d)", utt_status); return VC_ERROR_INVALID_PARAMETER; } diff --git a/include/voice_control_common.h b/include/voice_control_common.h index f8ca800..136e628 100644 --- a/include/voice_control_common.h +++ b/include/voice_control_common.h @@ -138,7 +138,7 @@ typedef enum { * @since_tizen 5.5 */ typedef enum { - VC_TTS_UTTERANCE_NONE = 0, /**< None */ + VC_TTS_UTTERANCE_NONE = -1, /**< None */ VC_TTS_UTTERANCE_STARTED = 1, /**< Utterance started */ VC_TTS_UTTERANCE_COMPLETED = 2, /**< Utterance completed */ VC_TTS_UTTERANCE_CANCELED = 3 /**< Utterance canceled */ -- 2.7.4