aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-30 19:54:19 +0100
committerMax Kellermann <max@duempel.org>2009-01-30 19:54:19 +0100
commit6aa734dc355ee3d8d3deb03adb4013dddc45694f (patch)
tree5362c76bc6bde9c2a1736c4eb711e208b15bbac1
parentdd23e71953794d24446d3da0db0aefd45cda45d8 (diff)
downloadmpd-6aa734dc355ee3d8d3deb03adb4013dddc45694f.tar.gz
mpd-6aa734dc355ee3d8d3deb03adb4013dddc45694f.tar.xz
mpd-6aa734dc355ee3d8d3deb03adb4013dddc45694f.zip
playlist: clear playlist.playing when deleting current song
This fixes an assertion failure: when the last song in the playlist was playing, and you deleted it, MPD aborted.
Diffstat (limited to '')
-rw-r--r--src/playlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/playlist.c b/src/playlist.c
index ab23691e3..86639a1e3 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -526,6 +526,7 @@ enum playlist_result deleteFromPlaylist(unsigned song)
/* the current song is going to be deleted: stop the player */
playerWait();
+ playlist.playing = false;
/* see which song is going to be played instead */