diff options
author | Max Kellermann <max@musicpd.org> | 2021-01-20 21:03:58 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2021-01-21 13:52:01 +0100 |
commit | 3a7c9c7c8443227cbc6786f2dc3498c945ca927f (patch) | |
tree | adc316c5b0dcf7c9d3fce73dee80d0402e91a388 | |
parent | 6d08e761c8203ac8810e1f49c8ac4fd188c9d9ac (diff) |
db/simple/ExportedSong: add option to own a Tag
-rw-r--r-- | src/db/plugins/simple/ExportedSong.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/db/plugins/simple/ExportedSong.hxx b/src/db/plugins/simple/ExportedSong.hxx index 6f2f8bd84..886be078b 100644 --- a/src/db/plugins/simple/ExportedSong.hxx +++ b/src/db/plugins/simple/ExportedSong.hxx @@ -21,6 +21,7 @@ #define MPD_DB_SIMPLE_EXPORTED_SONG_HXX #include "song/LightSong.hxx" +#include "tag/Tag.hxx" /** * The return type for Song::Export(). In addition to implementing @@ -28,8 +29,14 @@ * a #LightSong, e.g. a merged #Tag. */ class ExportedSong : public LightSong { + Tag tag_buffer; + public: using LightSong::LightSong; + + ExportedSong(const char *_uri, Tag &&_tag) noexcept + :LightSong(_uri, tag_buffer), + tag_buffer(std::move(_tag)) {} }; #endif |