screen_reader_tts: added missing error check on tts_play call 48/260848/2 accepted/tizen/unified/20210707.070926 submit/tizen/20210707.020929
authorMaria Bialota <m.bialota@samsung.com>
Mon, 5 Jul 2021 12:51:12 +0000 (14:51 +0200)
committerMaria Bialota <m.bialota@samsung.com>
Mon, 5 Jul 2021 20:37:49 +0000 (22:37 +0200)
Change-Id: I4798ffec806b69f4a94f7c868edbcce38523f388

src/screen_reader_tts.c

index 599863d68764ee33335471ebca09f533a24d498a..346fae4d7ee850923f16da675438d3d73607238d 100644 (file)
@@ -531,7 +531,11 @@ send_command_to_tts(TWData *tw, tts_state_e state)
                if (chunk_accepted) {
                        DEBUG("Chunk accepted id %d", ctx->last_id);
                        command->is_playing = EINA_TRUE;
-                       if (state == TTS_STATE_READY) tts_play(tw->tts);
+                       if (state == TTS_STATE_READY) {
+                               int ret = tts_play(tw->tts);
+                               if (TTS_ERROR_NONE != ret)
+                                       ERROR("tts_play failed! result(%d)", ret);
+                       }
 
 #ifndef SCREEN_READER_TV
                        /* TODO This is not proper way and place to do this. */