]> git.sesse.net Git - vlc/commitdiff
osd: fix return value.
authorRémi Duraffort <ivoire@videolan.org>
Sun, 20 Dec 2009 09:59:27 +0000 (10:59 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Mon, 28 Dec 2009 13:18:27 +0000 (14:18 +0100)
src/osd/osd.c

index 29e90cc9bea98ba0fd55bd33229b3ec5c2866624..4240ce3a69fee432b5c65e4b034b17167423917a 100644 (file)
@@ -73,7 +73,7 @@ static bool osd_ParserLoad( osd_menu_t *p_menu, const char *psz_file )
     if( !p_menu->p_image || !p_menu->psz_file )
     {
         msg_Err( p_menu, "unable to load images, aborting .." );
-        return true;
+        return false;
     }
     else
     {
@@ -109,8 +109,8 @@ static void osd_ParserUnload( osd_menu_t *p_menu )
 /**
  * Change state on an osd_button_t.
  *
- * This function selects the specified state and returns a pointer vlc_custom_createto it. The
- * following states are currently supported:
+ * This function selects the specified state and returns a pointer
+ * vlc_custom_create to it. The following states are currently supported:
  * \see OSD_BUTTON_UNSELECT
  * \see OSD_BUTTON_SELECT
  * \see OSD_BUTTON_PRESSED
@@ -121,7 +121,7 @@ static osd_state_t *osd_StateChange( osd_button_t *p_button, const int i_state )
     osd_state_t *p_temp = NULL;
     int i = 0;
 
-    for( i=0; p_current != NULL; i++ )
+    for( i= 0; p_current != NULL; i++ )
     {
         if( p_current->i_state == i_state )
         {