From: Seunghun Lee Date: Thu, 16 Jan 2020 06:20:15 +0000 (+0900) Subject: video: Remove if statement that is not necessary. X-Git-Tag: submit/tizen/20200220.070651~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e56ca23a2c258a10dbd0e7543a3b3d37d092a5de;p=platform%2Fupstream%2Fenlightenment.git video: Remove if statement that is not necessary. There is no need to check if evas object is bigger than 1. Just make it 1x1 whenever its size changed. Change-Id: I40139148914803260571a1fe40a7f53e15ae095f --- diff --git a/src/bin/video/iface/e_video_hwc.c b/src/bin/video/iface/e_video_hwc.c index a5ebfd4a44..752db35d64 100644 --- a/src/bin/video/iface/e_video_hwc.c +++ b/src/bin/video/iface/e_video_hwc.c @@ -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);