From c52aa54e61a9c359abeb8cad40dad076a90a1363 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Mon, 8 Aug 2016 14:49:35 +0900 Subject: [PATCH] emotion modules -0 check return value of eina_module_load and print err this should inform the user via eina log errors that a module load failed. this fixes CID 1360954 --- src/lib/emotion/emotion_modules.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib/emotion/emotion_modules.c b/src/lib/emotion/emotion_modules.c index 590a61f..346523f 100644 --- a/src/lib/emotion/emotion_modules.c +++ b/src/lib/emotion/emotion_modules.c @@ -370,7 +370,11 @@ emotion_engine_instance_new(const char *name, Evas_Object *obj, Emotion_Module_O if (name) { m = _find_mod(name); - if (m) eina_module_load(m); + if (m) + { + if (!eina_module_load(m)) + ERR("Cannot load module %s", eina_module_file_get(m)); + } } if (!_emotion_engine_registry) @@ -380,7 +384,8 @@ emotion_engine_instance_new(const char *name, Evas_Object *obj, Emotion_Module_O if (!m) m = _find_mod("gstreamer"); if (!m) m = _find_mod("gstreamer1"); if (!m) m = _find_mod("libvlc"); - if (m) eina_module_load(m); + if (!eina_module_load(m)) + ERR("Cannot load module %s", eina_module_file_get(m)); } if (name) -- 2.7.4