From: wn.jang Date: Fri, 13 Mar 2020 06:23:27 +0000 (+0900) Subject: Remove unnecessary value X-Git-Tag: submit/tizen/20200323.110648~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed89a870029062dc9f77cbfe27b18a7ac1b21d49;p=platform%2Fcore%2Fuifw%2Ftts.git Remove unnecessary value This is related to thread safety error. The problem happened at following codes in ttsd_player_play() function. if (NULL != g_playing_info) { if (uid == g_playing_info->uid) { g_playing_info can be NULL on __play_thread() function which is including this removed codes. So, this codes has been removed. Change-Id: I1183904f34712c0747f99e126edb3f444ffdc5b3 --- diff --git a/server/ttsd_player.c b/server/ttsd_player.c index 07d99f0..3ddd8bc 100644 --- a/server/ttsd_player.c +++ b/server/ttsd_player.c @@ -720,7 +720,7 @@ static void __play_thread(void *data, Ecore_Thread *thread) ret = audio_out_prepare(g_audio_h); if (AUDIO_IO_ERROR_NONE != ret) { SLOG(LOG_ERROR, tts_tag(), "[Player ERROR] Fail to prepare audio : %d", ret); - g_playing_info = NULL; + /* unset volume policy, volume will be 100% */ __unset_policy_for_playing();