From: wn.jang Date: Wed, 22 Jan 2020 12:14:36 +0000 (+0900) Subject: Add logs when audio data is exhausted X-Git-Tag: submit/tizen/20200220.060827~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Ftts.git;a=commitdiff_plain;h=5fa91e59a2db8fc14f11ee8b7b775718adfa9db2 Add logs when audio data is exhausted Change-Id: Id1f9d61609e46a1c3b815a99abf651c1b135003b (cherry picked from commit 8dcb15ae658b60aefc9f967302d92c55ff979f13) --- diff --git a/server/ttsd_player.c b/server/ttsd_player.c index 581e847..5f7c043 100644 --- a/server/ttsd_player.c +++ b/server/ttsd_player.c @@ -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"); } }