Add missing mutex unlock before exit the function 59/254659/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 8 Mar 2021 01:41:02 +0000 (10:41 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Mon, 8 Mar 2021 01:41:02 +0000 (10:41 +0900)
Change-Id: I6f6c6f84fc99918f916b387589e5d8e10bcbe83b
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/ttsd_player.c

index aaab405..539bb56 100644 (file)
@@ -1509,6 +1509,7 @@ int ttsd_player_play_pcm(int uid)
        if (NULL != g_playing_info) {
                if (uid == g_playing_info->uid) {
                        SLOG(LOG_DEBUG, tts_tag(), "[Player] uid(%d) has already played", g_playing_info->uid);
+                       pthread_mutex_unlock(&g_player_control_mutex);
                        return 0;
                } else {
                        SLOG(LOG_WARN, tts_tag(), "[Player WARNING] stop old player (%d)", g_playing_info->uid);