simple fix for play -1
git-svn-id: https://svn.musicpd.org/mpd/trunk@1328 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
915af1e093
commit
7d0ffc96e1
|
@ -704,6 +704,8 @@ int playPlaylist(FILE * fp, int song, int stopOnError) {
|
|||
clearPlayerError();
|
||||
|
||||
if(song==-1) {
|
||||
if(playlist.length == 0) return 0;
|
||||
|
||||
if(playlist_state == PLAYLIST_STATE_PLAY) {
|
||||
return playerSetPause(fp, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue