db/simple: fix ExportedSong move constructor for non-owning sources

If the constructor moves from an ExportedSong instance which refers to
somebody else's "Tag" instance, the newly constructed instance will
instead refer to its own empty "tag_buffer" field.  This broke
SimpleDatabase::GetSong(), i.e. all songs on the queue restored from
the state file or added using the "addid" command.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1089
This commit is contained in:
Max Kellermann
2021-02-16 13:47:22 +01:00
parent a91fba6a3d
commit 80531ef8d8
2 changed files with 18 additions and 1 deletions

1
NEWS
View File

@@ -1,4 +1,5 @@
ver 0.22.6 (not yet released)
* fix missing tags on songs in queue
ver 0.22.5 (2021/02/15)
* protocol