aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/emotion
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-08-08 14:49:35 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-08-08 17:47:14 +0900
commitc52aa54e61a9c359abeb8cad40dad076a90a1363 (patch)
tree4333648499cd5bd60bae4276cf2f4846ebf50b3a /src/lib/emotion
parentevas: Mark native_surface as const (diff)
downloadefl-c52aa54e61a9c359abeb8cad40dad076a90a1363.tar.gz
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
Diffstat (limited to 'src/lib/emotion')
-rw-r--r--src/lib/emotion/emotion_modules.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/emotion/emotion_modules.c b/src/lib/emotion/emotion_modules.c
index 590a61fc42..346523fb07 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)