Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_media.c 


Log Message:
Cleanup compiler warnings.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_media.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- ewl_media.c 4 Apr 2006 18:14:39 -0000       1.13
+++ ewl_media.c 18 Apr 2006 23:17:02 -0000      1.14
@@ -168,12 +168,18 @@
        /*
         * Update the emotion to the new file
         */
-       if (m->video) {
+       if (m->video)
                emotion_object_file_set(m->video, m->media);
-               ewl_media_size_update(m);
-       }
 #endif
 
+       /*
+        * Move this check outside the optional build to avoid warnings, and
+        * to keep it generic in the event something other than emotion is
+        * added.
+        */
+       if (m->video)
+               ewl_media_size_update(m);
+
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
 
@@ -539,7 +545,7 @@
 static void
 ewl_media_size_update(Ewl_Media *m)
 {
-       int width, height;
+       int width = 0, height = 0;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
        DCHECK_PARAM_PTR("m", m);




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to