From 6aa734dc355ee3d8d3deb03adb4013dddc45694f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 30 Jan 2009 19:54:19 +0100 Subject: 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. --- src/playlist.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- cgit v1.2.3