From: sooyeon Date: Thu, 17 Feb 2022 14:34:41 +0000 (+0900) Subject: Invoke error callback when __prepare_cb is failed X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edd1167d08522e92192827c990dffb76d5a5f83c;p=platform%2Fcore%2Fuifw%2Ftts.git Invoke error callback when __prepare_cb is failed Change-Id: Ic27aae30b4b97e499f875ee480dfbae9f173be45 Signed-off-by: sooyeon --- diff --git a/client/tts_core.c b/client/tts_core.c index 48843bf1..71a98fa3 100644 --- a/client/tts_core.c +++ b/client/tts_core.c @@ -461,12 +461,15 @@ static Eina_Bool __prepare_cb(void *data) client->prepare_count++; if (TTS_HELLO_RETRY_COUNT == client->prepare_count) { - SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] Stop to prepare, retry count reaches the limit"); + SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] Fail to prepare, retry count reaches the limit"); bool is_launched = __is_engine_launched(tts_client_get_mode(client)); SLOG(LOG_INFO, TAG_TTSC, "[INFO] tts engine is launched(%d)", is_launched); client->hello_timer = NULL; + + tts_core_notify_error_async(client, TTS_ERROR_TIMED_OUT, -1, "[ERROR] Fail to prepare. Please call tts_prepare() again."); + return EINA_FALSE; }