summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-07-24 18:24:01 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-07-24 18:44:15 +0900
commit8b20d8dd0d62d6e22f8b040f7ac2b0442b8e345a (patch)
treef620160b3705181eaddd37b98197cab0a485a97d
parent35e39f4145420d8b2d14f93e91633cfceffe4540 (diff)
efl ui video - fix coverity CID 1356997
really minor lack of check if emotion init succeeds. check and complain if it fails. @fix
-rw-r--r--src/lib/elementary/efl_ui_video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_video.c b/src/lib/elementary/efl_ui_video.c
index 2f1965b139..50bb003432 100644
--- a/src/lib/elementary/efl_ui_video.c
+++ b/src/lib/elementary/efl_ui_video.c
@@ -245,7 +245,8 @@ _efl_ui_video_efl_canvas_group_group_add(Eo *obj, Efl_Ui_Video_Data *priv)
245 elm_widget_can_focus_set(obj, EINA_TRUE); 245 elm_widget_can_focus_set(obj, EINA_TRUE);
246 246
247 priv->emotion = emotion_object_add(evas_object_evas_get(obj)); 247 priv->emotion = emotion_object_add(evas_object_evas_get(obj));
248 emotion_object_init(priv->emotion, NULL); 248 if (!emotion_object_init(priv->emotion, NULL))
249 CRI("Failed to init emotion object");
249 250
250 if (!elm_layout_theme_set(obj, "video", "base", elm_widget_style_get(obj))) 251 if (!elm_layout_theme_set(obj, "video", "base", elm_widget_style_get(obj)))
251 CRI("Failed to set layout!"); 252 CRI("Failed to set layout!");