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:
parent
dd23e71953
commit
6aa734dc35
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user