From 7d0ffc96e12fe659e7f5f6464321b19e76ff1529 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Fri, 4 Jun 2004 03:10:54 +0000 Subject: simple fix for play -1 git-svn-id: https://svn.musicpd.org/mpd/trunk@1328 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/playlist.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- cgit v1.2.3