Change parent_id to wl_surface_id 55/58855/1 accepted/tizen/mobile/20160217.010959 accepted/tizen/tv/20160217.011029 accepted/tizen/wearable/20160217.011040 submit/tizen/20160216.083712 submit/tizen/20160216.102007 submit/tizen_common/20160211.052553 submit/tizen_common/20160218.142243
authorHyunil <hyunil46.park@samsung.com>
Thu, 4 Feb 2016 06:16:15 +0000 (15:16 +0900)
committerHyunil <hyunil46.park@samsung.com>
Thu, 4 Feb 2016 06:16:15 +0000 (15:16 +0900)
Change-Id: Iaa41b2af0872b7b2c538a6189ff098b26a58d188
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
src/player_priv.c

index b496f71eb5d4c419c70f22873e1660fd3b8612ce..912bba7521205b04b90e5ea4a33f003032b61a26 100644 (file)
@@ -81,7 +81,7 @@ int player_resize_video_render_rect(player_h player, int x, int y, int w, int h)
        }
 }
 
-int player_set_display_wl_for_mused(player_h player, player_display_type_e type, unsigned int parent_id, int x, int y, int w, int h)
+int player_set_display_wl_for_mused(player_h player, player_display_type_e type, unsigned int wl_surface_id, int x, int y, int w, int h)
 {
        PLAYER_INSTANCE_CHECK(player);
        player_s *handle = (player_s *)player;
@@ -117,8 +117,8 @@ int player_set_display_wl_for_mused(player_h player, player_display_type_e type,
                temp = handle->display_handle;
                if (type == PLAYER_DISPLAY_TYPE_OVERLAY) {
                        LOGI("Wayland overlay surface type");
-                       LOGI("parent_id %d", parent_id);
-                       handle->display_handle = (void *)(uintptr_t)parent_id;
+                       LOGI("wl_surface_id %d", wl_surface_id);
+                       handle->display_handle = (void *)(uintptr_t)wl_surface_id;
                        set_handle = &(handle->display_handle);
                        mmClientType = MM_DISPLAY_SURFACE_OVERLAY;
 #ifdef TIZEN_MOBILE
@@ -137,7 +137,7 @@ int player_set_display_wl_for_mused(player_h player, player_display_type_e type,
        if (handle->display_type == PLAYER_DISPLAY_TYPE_NONE || type == handle->display_type) {
                /* first time or same type */
                LOGW("first time or same type");
-               ret = mm_player_set_attribute(handle->mm_handle, NULL, "display_surface_type", mmType, "display_surface_client_type", mmClientType, "display_overlay", set_handle, sizeof(parent_id), "pipeline_type", mmPipelineType, NULL);
+               ret = mm_player_set_attribute(handle->mm_handle, NULL, "display_surface_type", mmType, "display_surface_client_type", mmClientType, "display_overlay", set_handle, sizeof(wl_surface_id), "pipeline_type", mmPipelineType, NULL);
 
                if (ret != MM_ERROR_NONE) {
                        handle->display_handle = temp;