summaryrefslogtreecommitdiff
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
parentf06506c970c26d1602f0958481889efccee681cc (diff)
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
370 if (name) 370 if (name)
371 { 371 {
372 m = _find_mod(name); 372 m = _find_mod(name);
373 if (m) eina_module_load(m); 373 if (m)
374 {
375 if (!eina_module_load(m))
376 ERR("Cannot load module %s", eina_module_file_get(m));
377 }
374 } 378 }
375 379
376 if (!_emotion_engine_registry) 380 if (!_emotion_engine_registry)
@@ -380,7 +384,8 @@ emotion_engine_instance_new(const char *name, Evas_Object *obj, Emotion_Module_O
380 if (!m) m = _find_mod("gstreamer"); 384 if (!m) m = _find_mod("gstreamer");
381 if (!m) m = _find_mod("gstreamer1"); 385 if (!m) m = _find_mod("gstreamer1");
382 if (!m) m = _find_mod("libvlc"); 386 if (!m) m = _find_mod("libvlc");
383 if (m) eina_module_load(m); 387 if (!eina_module_load(m))
388 ERR("Cannot load module %s", eina_module_file_get(m));
384 } 389 }
385 390
386 if (name) 391 if (name)