Remove unnecessary value 16/227616/1
authorwn.jang <wn.jang@samsung.com>
Fri, 13 Mar 2020 06:23:27 +0000 (15:23 +0900)
committerwn.jang <wn.jang@samsung.com>
Fri, 13 Mar 2020 06:23:36 +0000 (15:23 +0900)
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

index 07d99f0..3ddd8bc 100644 (file)
@@ -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();