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
This commit is contained in:
Carsten Haitzler 2016-08-08 14:49:35 +09:00
parent f06506c970
commit c52aa54e61
1 changed files with 7 additions and 2 deletions

View File

@ -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)