diff options
-rw-r--r-- | src/playlist.c | 2 |
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); } |