raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=c52aa54e61a9c359abeb8cad40dad076a90a1363

commit c52aa54e61a9c359abeb8cad40dad076a90a1363
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Mon Aug 8 14:49:35 2016 +0900

    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)

-- 


Reply via email to