db/simple: fix dangling LightSong::tag reference in moved ExportedSong

After commit 1afa33c3c7, an old bug was revealed:
SimpleDatabase::GetSong() constructs an ExportedSong instance by
moving the return value of Song::Export(), which causes the
LightSong::tag field to be dangling on the moved-from
ExportedSong::tag_buffer.  This broke tags from CUE sheets.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1070
This commit is contained in:
Max Kellermann
2021-02-15 17:34:03 +01:00
parent efde78db77
commit d4d06da2f8
3 changed files with 24 additions and 0 deletions

2
NEWS
View File

@@ -1,4 +1,6 @@
ver 0.22.5 (not yet released)
* database
- simple: fix missing CUE sheet metadata in "addid" command
* tags
- id: translate TPE3 to Conductor, not Performer
* archive