From: sungrae jo Date: Thu, 30 Jul 2020 04:36:06 +0000 (+0900) Subject: Fixed enum value for vc_tts_utterance_status_e X-Git-Tag: accepted/tizen/6.0/unified/20201030.104907~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5db2de67c7f83bcc4ad2ea33cf81203619450e6e;p=platform%2Fcore%2Fuifw%2Fvoice-control.git Fixed enum value for vc_tts_utterance_status_e Change-Id: I01fe0b9f25be912764cc8a2aeb98be053e97e8a3 Signed-off-by: sungrae jo --- 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 */