[v0.3.45] Set visible as TRUE after seek is done 65/112065/2
authorEunhae Choi <eunhae1.choi@samsung.com>
Wed, 25 Jan 2017 05:29:21 +0000 (14:29 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Wed, 25 Jan 2017 22:57:08 +0000 (07:57 +0900)
- 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)

packaging/capi-media-player.spec
src/player.c

index b662cc1..18b2db7 100644 (file)
@@ -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
index 8dd128f..386dfff 100755 (executable)
@@ -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);