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:
@ -704,6 +704,8 @@ int playPlaylist(FILE * fp, int song, int stopOnError) {
|
|||||||
clearPlayerError();
|
clearPlayerError();
|
||||||
|
|
||||||
if(song==-1) {
|
if(song==-1) {
|
||||||
|
if(playlist.length == 0) return 0;
|
||||||
|
|
||||||
if(playlist_state == PLAYLIST_STATE_PLAY) {
|
if(playlist_state == PLAYLIST_STATE_PLAY) {
|
||||||
return playerSetPause(fp, 0);
|
return playerSetPause(fp, 0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user