Commit 23fe0695 authored by Sergey Radionov's avatar Sergey Radionov Committed by Jean-Baptiste Kempf

Fix .play(void) after .playlist.add();

parent affc79fc
......@@ -167,8 +167,15 @@ void vlc_player::play()
if( !is_open() )
return;
libvlc_media_list_player_play(_ml_p);
on_player_action(pa_play);
if( 0 == items_count() )
return;
else if( -1 == current_item() ) {
play(0);
}
else {
libvlc_media_list_player_play(_ml_p);
on_player_action(pa_play);
}
}
bool vlc_player::play(unsigned int idx)
......
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