aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-04 03:10:54 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-04 03:10:54 +0000
commit7d0ffc96e12fe659e7f5f6464321b19e76ff1529 (patch)
tree02047e33f9551f0182b771999b26d164b51a595f /src/playlist.c
parent915af1e09366c891b4999055474831fc1c2e8be3 (diff)
downloadmpd-7d0ffc96e12fe659e7f5f6464321b19e76ff1529.tar.gz
mpd-7d0ffc96e12fe659e7f5f6464321b19e76ff1529.tar.xz
mpd-7d0ffc96e12fe659e7f5f6464321b19e76ff1529.zip
simple fix for play -1
git-svn-id: https://svn.musicpd.org/mpd/trunk@1328 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/playlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 2e5e20668..ad2e7d2f3 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -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);
}