From: RĂ©mi Duraffort Date: Sun, 20 Dec 2009 09:59:27 +0000 (+0100) Subject: osd: fix return value. X-Git-Tag: 1.1.0-ff~1672 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2d4bad07085303da4c1cd15972e9e362cfa8e704;p=vlc osd: fix return value. --- diff --git a/src/osd/osd.c b/src/osd/osd.c index 29e90cc9be..4240ce3a69 100644 --- a/src/osd/osd.c +++ b/src/osd/osd.c @@ -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 ) {