]> git.sesse.net Git - vlc/commitdiff
control/media_list_player.c: Fix a typo in get_next_index.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 11 Aug 2007 12:01:14 +0000 (12:01 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 11 Aug 2007 12:01:14 +0000 (12:01 +0000)
src/control/media_list_player.c

index 3611a8f4948b00337cc3e172f1771cc35ade7285..2506bb9078a84d26430257698478c291879e24d0 100644 (file)
@@ -38,7 +38,7 @@ static int get_next_index( libvlc_media_list_player_t * p_mlp )
        
        int next = p_mlp->i_current_playing_index + 1;
 
-       if( libvlc_media_list_count( p_mlp->p_mlist, NULL ) >= next )
+       if( next >= libvlc_media_list_count( p_mlp->p_mlist, NULL ) )
                return -1; /* no more to play */
 
        return next;