From ed89a870029062dc9f77cbfe27b18a7ac1b21d49 Mon Sep 17 00:00:00 2001 From: "wn.jang" Date: Fri, 13 Mar 2020 15:23:27 +0900 Subject: [PATCH] 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 --- server/ttsd_player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.7.4