Stop player thread when an error occurs 24/299624/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 5 Oct 2023 12:18:12 +0000 (21:18 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 5 Oct 2023 12:18:12 +0000 (21:18 +0900)
Change-Id: Iac55d6e61df0b9020d2db9f85e568df73809a898
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/ttsd_server.c

index fd97cf3..bf24c21 100644 (file)
@@ -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()");