summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-29 09:29:08 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-29 12:29:04 -0400
commit97a50b43ca339f0aa6a7cc12bb9f471672b9716c (patch)
treea9f81f2e3ef3b6360a294a385d9853c36b674699
parentf1b12b92e4c0c3451936378bb5504f7e94377d21 (diff)
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
-rw-r--r--src/lib/elementary/efl_ui_video.c8
1 files 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)
115 Evas_Coord w = 0, h = 0; 115 Evas_Coord w = 0, h = 0;
116 116
117 evas_object_size_hint_request_get(sd->emotion, &minw, &minh); 117 evas_object_size_hint_request_get(sd->emotion, &minw, &minh);
118 evas_object_size_hint_aspect_set 118 if (minw && minh)
119 (sd->emotion, EVAS_ASPECT_CONTROL_BOTH, minw, minh); 119 evas_object_size_hint_aspect_set
120 (sd->emotion, EVAS_ASPECT_CONTROL_BOTH, minw, minh);
120 edje_object_size_min_calc(wd->resize_obj, &w, &h); 121 edje_object_size_min_calc(wd->resize_obj, &w, &h);
121 122
122 if (w != 0 && h != 0) 123 if (w != 0 && h != 0)
123 { 124 {
124 minw = w; 125 minw = w;
125 minh = h; 126 minh = h;
127 evas_object_size_hint_aspect_set(obj, EVAS_ASPECT_CONTROL_BOTH, minw, minh);
126 } 128 }
127
128 evas_object_size_hint_aspect_set(obj, EVAS_ASPECT_CONTROL_BOTH, minw, minh);
129} 129}
130 130
131static void 131static void