Add logs when audio data is exhausted 32/224432/1
authorwn.jang <wn.jang@samsung.com>
Wed, 22 Jan 2020 12:14:36 +0000 (21:14 +0900)
committerSooyeon Kim <sooyeon.kim@samsung.com>
Mon, 10 Feb 2020 12:03:23 +0000 (12:03 +0000)
Change-Id: Id1f9d61609e46a1c3b815a99abf651c1b135003b
(cherry picked from commit 8dcb15ae658b60aefc9f967302d92c55ff979f13)

server/ttsd_player.c

index 581e847..5f7c043 100644 (file)
@@ -558,7 +558,7 @@ static void __play_thread(void *data, Ecore_Thread *thread)
                        ret = ttsd_data_get_sound_data(player->uid, &sound_data);
                        if (0 != ret || NULL == sound_data) {
                                /* empty queue */
-                               SLOG(LOG_DEBUG, tts_tag(), "[Player] No sound data. Waiting mode");
+                               SLOG(LOG_ERROR, tts_tag(), "[Player] No sound data. Waiting mode");
 
                                /* wait for new audio data come */
                                while (1) {
@@ -600,6 +600,8 @@ static void __play_thread(void *data, Ecore_Thread *thread)
                                                        /* unset volume policy, volume will be 100% */
                                                        __unset_policy_for_playing();
                                                }
+                                       } else {
+                                               SLOG(LOG_ERROR, tts_tag(), "[Player] Sound data is NULL, while engine is on processing to synthesize");
                                        }
                                }