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.
This commit is contained in:
Max Kellermann 2009-01-30 19:54:19 +01:00
parent dd23e71953
commit 6aa734dc35

View File

@ -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 */