Commit b8067f04 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/media_list_player.c: Fix a typo in get_next_index.

parent 5efb1f01
...@@ -38,7 +38,7 @@ static int get_next_index( libvlc_media_list_player_t * p_mlp ) ...@@ -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; 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 -1; /* no more to play */
return next; return next;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment