From: Eunhae Choi Date: Wed, 25 Jan 2017 05:29:21 +0000 (+0900) Subject: [v0.3.45] Set visible as TRUE after seek is done X-Git-Tag: accepted/tizen/common/20170206.124355~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9867f04d61279b1ab7897e7e098fee24faa3fd2;p=platform%2Fcore%2Fapi%2Fplayer.git [v0.3.45] Set visible as TRUE after seek is done - to display the first video frame if app call the seek before start like overlay type. - this operation is the same with tizen 2.4 and before. Change-Id: Iffd3a7c4625f17cdbe5ed230ae50f55b54e4fd9e (cherry picked from commit 43aef9fc11670a4f57e6ba80bb1631eb8e453b76) --- diff --git a/packaging/capi-media-player.spec b/packaging/capi-media-player.spec index b662cc1..18b2db7 100644 --- a/packaging/capi-media-player.spec +++ b/packaging/capi-media-player.spec @@ -1,6 +1,6 @@ Name: capi-media-player Summary: A Media Player API -Version: 0.3.44 +Version: 0.3.45 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/player.c b/src/player.c index 8dd128f..386dfff 100755 --- a/src/player.c +++ b/src/player.c @@ -645,6 +645,15 @@ static void __seek_cb_handler(callback_cb_info_s * cb_info, _player_recv_data *r g_mutex_lock(&cb_info->seek_cb_mutex); if (cb_info->user_cb[ev] && cb_info->seek_cb_state == PLAYER_SEEK_CB_STATE_NONE) { +#ifdef TIZEN_FEATURE_EVAS_RENDERER + if (cb_info->evas_info && cb_info->evas_info->handle && cb_info->evas_info->visible != EVAS_VISIBLE_FALSE) { + int ret = mm_evas_renderer_set_visible(cb_info->evas_info->handle, true); + if (ret != MM_ERROR_NONE) + LOGW("failed to set visible at evas 0x%x", ret); + else + cb_info->evas_info->visible = EVAS_VISIBLE_TRUE; + } +#endif LOGD("call seek cb"); ((player_seek_completed_cb) cb_info->user_cb[ev]) (cb_info->user_data[ev]); set_null_user_cb(cb_info, ev);