From: Suyeon Hwang Date: Thu, 5 Oct 2023 12:18:12 +0000 (+0900) Subject: Stop player thread when an error occurs X-Git-Tag: accepted/tizen/8.0/unified/20231007.143446~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7699bbf20d21f908a67edb2569676080bc236da2;p=platform%2Fcore%2Fuifw%2Ftts.git Stop player thread when an error occurs Change-Id: Iac55d6e61df0b9020d2db9f85e568df73809a898 Signed-off-by: Suyeon Hwang (cherry picked from commit f79ef2c3c99cd78a9e063717eb1378b26f60e201) --- diff --git a/server/ttsd_server.c b/server/ttsd_server.c index fd97cf35..bf24c21a 100644 --- a/server/ttsd_server.c +++ b/server/ttsd_server.c @@ -227,6 +227,10 @@ int ttsd_send_error(ttse_error_e error, const char* msg) ttsd_data_set_synth_control(TTSD_SYNTHESIS_CONTROL_EXPIRED); + if (0 != ttsd_player_stop(uid)) { + SLOG(LOG_WARN, tts_tag(), "[Server] Fail to stop for uid(%u)", uid); + } + if (0 != ttsd_data_clear_data(uid)) SLOG(LOG_WARN, tts_tag(), "[Server] Fail to ttsd_data_clear_data()");