Enlightenment CVS committal
Author : doursse
Project : e17
Module : libs/emotion
Dir : e17/libs/emotion/src/lib
Modified Files:
emotion_smart.c
Log Message:
now you can play several files without segfault
===================================================================
RCS file: /cvs/e/e17/libs/emotion/src/lib/emotion_smart.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -3 -r1.35 -r1.36
--- emotion_smart.c 31 Oct 2007 19:34:39 -0000 1.35
+++ emotion_smart.c 2 Nov 2007 11:58:59 -0000 1.36
@@ -85,17 +85,18 @@
/* Globals for the E Video Object */
/**********************************/
static Evas_Smart *smart = NULL;
+static group_id = -1;
static unsigned char
_emotion_module_open(const char *name, Evas_Object *obj, Emotion_Video_Module
**mod, void **video)
{
Ecore_Plugin *plugin;
- int group_id;
char *tmp = NULL;
Smart_Data *sd;
E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
- group_id = ecore_path_group_new("emotion_module");
+ if (group_id < 0)
+ group_id = ecore_path_group_new("emotion_module");
tmp = getenv("EMOTION_MODULES_DIR");
if (tmp)
ecore_path_group_add(group_id, tmp);
@@ -123,7 +124,9 @@
else
printf ("Unable to load module %s\n", name);
- ecore_path_group_del(group_id);
+ if (group_id > 0)
+ ecore_path_group_del(group_id);
+
return 0;
}
@@ -143,8 +146,8 @@
*/
/*
ecore_plugin_unload(plugin);
- ecore_path_group_del(group_id);
*/
+ ecore_path_group_del(group_id);
}
/*******************************/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs