diff options
author | Max Kellermann <max@duempel.org> | 2009-01-30 19:54:19 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-30 19:54:19 +0100 |
commit | 6aa734dc355ee3d8d3deb03adb4013dddc45694f (patch) | |
tree | 5362c76bc6bde9c2a1736c4eb711e208b15bbac1 /src | |
parent | dd23e71953794d24446d3da0db0aefd45cda45d8 (diff) | |
download | mpd-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.c | 1 |
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 */ |