Commit 4a2b660c authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/media_list_player.c: Don't change playlist item at play.

parent 96fcedeb
...@@ -271,10 +271,13 @@ void libvlc_media_list_player_set_media_list( ...@@ -271,10 +271,13 @@ void libvlc_media_list_player_set_media_list(
void libvlc_media_list_player_play( libvlc_media_list_player_t * p_mlp, void libvlc_media_list_player_play( libvlc_media_list_player_t * p_mlp,
libvlc_exception_t * p_e ) libvlc_exception_t * p_e )
{ {
libvlc_media_list_player_next( p_mlp, p_e ); if( p_mlp->i_current_playing_index < 0 )
{
libvlc_media_list_player_next( p_mlp, p_e );
if( libvlc_exception_raised( p_e ) ) if( libvlc_exception_raised( p_e ) )
return; return;
}
libvlc_media_instance_play( p_mlp->p_mi, p_e ); libvlc_media_instance_play( p_mlp->p_mi, p_e );
} }
......
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