Fix condition of canceling synthesis 78/141378/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 31 Jul 2017 08:02:49 +0000 (17:02 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Mon, 31 Jul 2017 08:02:49 +0000 (17:02 +0900)
Change-Id: I264fdda830895f202da38fc7cfdc5da3ca5d06f7
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/ttsd_server.c

index eaf8a6e..724dc85 100644 (file)
@@ -902,7 +902,7 @@ int ttsd_server_stop(int uid)
        SLOG(LOG_INFO, tts_tag(), "[Server] server stop, state(%d)", state);
 
        if (APP_STATE_PLAYING == state || APP_STATE_PAUSED == state) {
-               if (TTSD_SYNTHESIS_CONTROL_DOING == __server_get_synth_control()) {
+               if (TTSD_SYNTHESIS_CONTROL_DOING == __server_get_synth_control() && uid == ttsd_data_get_current_playing()) {
                        SLOG(LOG_DEBUG, tts_tag(), "[Server] TTS-engine is running");
 
                        int ret = 0;