From 4a35bd4d46df8cf1af86ae4ce3594978fb80350a Mon Sep 17 00:00:00 2001 From: Eunhye Choi Date: Thu, 23 Apr 2020 19:00:08 +0900 Subject: [PATCH] [0.3.129][test] set subtitle cb - set subtitle cb by default in case of internal subtitle, the cb will be invoked without external subtitle path - print log after checking ret of buffering time api Change-Id: Iea317edf959ec6f8dab2fccd4393a29721707172 --- test/player_test.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/player_test.c b/test/player_test.c index 3c79470..04afca7 100644 --- a/test/player_test.c +++ b/test/player_test.c @@ -1005,8 +1005,8 @@ static void _player_prepare(bool async) if (slen > 0 && slen < MAX_STRING_LEN) { g_print("0. set subtile path() (size : %d) - %s \n", slen, g_subtitle_uri); player_set_subtitle_path(g_player[0], g_subtitle_uri); - player_set_subtitle_updated_cb(g_player[0], subtitle_updated_cb, (void *)g_player[0]); } + player_set_subtitle_updated_cb(g_player[0], subtitle_updated_cb, (void *)g_player[0]); if (g_current_surface_type == -1) { g_print("You must set display surface type before setting prepare.\n"); return; @@ -1457,9 +1457,11 @@ static void set_buffer_size(int prebuffer, int rebuffer) else g_print("current buffer size %d ms / %d ms\n", buffer_ms, rebuffer_ms); - g_print("new buffer size %d ms / %d ms\n", prebuffer, rebuffer); - - player_set_streaming_buffering_time(g_player[0], prebuffer, rebuffer); + ret = player_set_streaming_buffering_time(g_player[0], prebuffer, rebuffer); + if (ret != PLAYER_ERROR_NONE) + g_print("failed to set buffering time. 0x%X\n", ret); + else + g_print("new buffer size %d ms / %d ms\n", prebuffer, rebuffer); } static void get_buffering_position() -- 2.7.4