video: Remove if statement that is not necessary. 91/224891/2
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 16 Jan 2020 06:20:15 +0000 (15:20 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 17 Feb 2020 02:33:00 +0000 (02:33 +0000)
There is no need to check if evas object is bigger than 1.
Just make it 1x1 whenever its size changed.

Change-Id: I40139148914803260571a1fe40a7f53e15ae095f

src/bin/video/iface/e_video_hwc.c

index a5ebfd4a44f75ef681af3fdb3badd298d55f876e..752db35d6459db55b39a7ee2316ad68ac3af76b9 100644 (file)
@@ -1116,9 +1116,7 @@ _e_video_hwc_cb_evas_resize(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, v
    /* Since video content will be displayed on the overlay plane,
     * it's reasonable to keep the size of composite object to 1x1.
     * Otherwise, it will cause memory usage to be increased unnecessarily. */
-   evas_object_geometry_get(evh->ec->frame, NULL, NULL, &w, &h);
-   if (w > 1 || h > 1)
-     evas_object_resize(evh->ec->frame, 1, 1);
+   evas_object_resize(evh->ec->frame, 1, 1);
 
    evh->render.map = EINA_TRUE;
    _e_video_hwc_render_queue(evh);