From 97a50b43ca339f0aa6a7cc12bb9f471672b9716c Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 29 May 2019 09:29:08 -0400 Subject: [PATCH] efl_ui/video: do not set 0x0 aspect hint Summary: this is an error @fix Depends on D8982 Reviewers: cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8983 --- src/lib/elementary/efl_ui_video.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/elementary/efl_ui_video.c b/src/lib/elementary/efl_ui_video.c index 75b6b155dc..c4281b9ea7 100644 --- a/src/lib/elementary/efl_ui_video.c +++ b/src/lib/elementary/efl_ui_video.c @@ -115,17 +115,17 @@ _efl_ui_video_elm_layout_sizing_eval(Eo *obj, Efl_Ui_Video_Data *sd) Evas_Coord w = 0, h = 0; evas_object_size_hint_request_get(sd->emotion, &minw, &minh); - evas_object_size_hint_aspect_set - (sd->emotion, EVAS_ASPECT_CONTROL_BOTH, minw, minh); + if (minw && minh) + evas_object_size_hint_aspect_set + (sd->emotion, EVAS_ASPECT_CONTROL_BOTH, minw, minh); edje_object_size_min_calc(wd->resize_obj, &w, &h); if (w != 0 && h != 0) { minw = w; minh = h; + evas_object_size_hint_aspect_set(obj, EVAS_ASPECT_CONTROL_BOTH, minw, minh); } - - evas_object_size_hint_aspect_set(obj, EVAS_ASPECT_CONTROL_BOTH, minw, minh); } static void