queue/PlaylistEdit: fix crash in SetSongIdRange() while playing

An assertion failure in UpdateQueuedSong() could trigger because the
`prev` parameter is always `nullptr`, but `queued` may be set.  And in
fact, calling UpdateQueuedSong() is only necessary when the queued
song was edited, to re-queue it with the new range.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/901
This commit is contained in:
Max Kellermann
2020-06-11 07:06:59 +02:00
parent b7a99b4a4b
commit 5716cde1fb
2 changed files with 10 additions and 1 deletions

2
NEWS
View File

@@ -1,4 +1,6 @@
ver 0.21.25 (not yet released)
* protocol:
- fix crash when using "rangeid" while playing
ver 0.21.24 (2020/06/10)
* protocol