Fix warnings.
authorenglebass <englebass>
Tue, 13 Mar 2007 16:17:38 +0000 (16:17 +0000)
committerenglebass <englebass@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 13 Mar 2007 16:17:38 +0000 (16:17 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/emotion@28695 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/emotion_smart.c
src/modules/emotion_xine.c

index 71a81a1..b24ce9c 100644 (file)
@@ -99,7 +99,7 @@ _emotion_module_open(const char *name, Evas_Object *obj, Emotion_Video_Module **
    char buf[4096];
    Smart_Data *sd;
    
-   E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
+   E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
    snprintf(buf, sizeof(buf), "%s%s", PACKAGE_LIB_DIR"/emotion/",
    name);
    handle = dlopen(buf, RTLD_NOW | RTLD_GLOBAL);
index 4ec5490..b1efd06 100644 (file)
@@ -450,11 +450,7 @@ static unsigned char
 em_file_open(const char *file, Evas_Object *obj, void *ef)
 {
    Emotion_Xine_Video *ev;
-   int pos_stream = 0;
-   int pos_time = 0;
-   int length_time = 0;
-   uint32_t v;
-   
+
    ev = (Emotion_Xine_Video *)ef;
    if (!ev) return 0;
    _em_slave_event(ev, 2, strdup(file));
@@ -475,9 +471,6 @@ static void
 em_play(void *ef, double pos)
 {
    Emotion_Xine_Video *ev;
-   int pos_stream = 0;
-   int pos_time = 0;
-   int length_time = 0;
    double *ppos;
    
    ev = (Emotion_Xine_Video *)ef;