Commit 6aa734dc authored by Max Kellermann's avatar Max Kellermann

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.
parent dd23e719
...@@ -526,6 +526,7 @@ enum playlist_result deleteFromPlaylist(unsigned song) ...@@ -526,6 +526,7 @@ enum playlist_result deleteFromPlaylist(unsigned song)
/* the current song is going to be deleted: stop the player */ /* the current song is going to be deleted: stop the player */
playerWait(); playerWait();
playlist.playing = false;
/* see which song is going to be played instead */ /* see which song is going to be played instead */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment