Remove setting render rectangle 35/169635/1
authorHyunil <hyunil46.park@samsung.com>
Thu, 8 Feb 2018 02:10:17 +0000 (11:10 +0900)
committerHyunil <hyunil46.park@samsung.com>
Thu, 8 Feb 2018 05:38:32 +0000 (14:38 +0900)
Videosink set full screen without setting the window size of the application

Change-Id: Ib9462a01425b630cab19a3b1ce1e6cbcc4294b6b
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
include/media_streamer_priv.h
src/media_streamer_node.c

index ad6df636a854d7f9d5acc2fbc5f1f2a0b6e27df4..a2a49ce8a8e75e866aa5587db2971b92b23f46bd 100644 (file)
@@ -148,11 +148,6 @@ typedef struct {
 
 typedef struct _media_streamer_wl_info_s {
        int parent_id;
-       int window_x;
-       int window_y;
-       int window_width;
-       int window_height;
-       void *evas_obj;
 } media_streamer_wl_info_s;
 
 /* Private functions definition */
index ff7563ac7de1e8af619721321ea92d42ffbc26cd..3be4629627a1036bda831098d9ded20bec8c9e3b 100644 (file)
@@ -1379,34 +1379,7 @@ int _media_streamer_get_wl_info(Evas_Object *obj, media_streamer_wl_info_s *wl_i
        wl_display_roundtrip_queue(display, queue);
 
        if (wl_info->parent_id > 0) {
-               int rotation = 0;
-               Ecore_Evas *ecore_evas = NULL;
-               ret = MEDIA_STREAMER_ERROR_NONE;
-
-               wl_info->evas_obj = obj;
-
-               evas_object_geometry_get(obj, &wl_info->window_x, &wl_info->window_y,
-                       &wl_info->window_width, &wl_info->window_height);
-
-               ecore_evas = ecore_evas_ecore_evas_get(evas_object_evas_get(obj));
-               if (ecore_evas) {
-                       rotation = ecore_evas_rotation_get(ecore_evas);
-                       if (rotation == 90 || rotation == 270) {
-                               int temp = wl_info->window_width;
-
-                               LOGD("swap width and height %d, %d", wl_info->window_width, wl_info->window_height);
-
-                               wl_info->window_width = wl_info->window_height;
-                               wl_info->window_height = temp;
-                       }
-               } else {
-                       LOGW("failed to get ecore_evas.. skip rotation check");
-               }
-
-               LOGD("evas object : %p, rotation : %d, parent id : %u, window : %d,%d,%dx%d",
-                       wl_info->evas_obj, rotation, wl_info->parent_id,
-                       wl_info->window_x, wl_info->window_y,
-                       wl_info->window_width, wl_info->window_height);
+               LOGD("parent id : %u", wl_info->parent_id);
        } else {
                ret = MEDIA_STREAMER_ERROR_INVALID_OPERATION;
                LOGE("failed to get parent id");
@@ -1463,8 +1436,6 @@ int __ms_node_set_display(media_streamer_node_s *ms_node, const char *param_valu
        LOGD("wayland global surface id : %d", wl_info.parent_id);
 
        gst_video_overlay_set_wl_window_wl_surface_id(GST_VIDEO_OVERLAY(ms_node->gst_element), (guintptr)wl_info.parent_id);
-       gst_video_overlay_set_render_rectangle(GST_VIDEO_OVERLAY(ms_node->gst_element),
-               wl_info.window_x, wl_info.window_y, wl_info.window_width, wl_info.window_height);
 
        return ret;
 }