output/PipeWire: map tags "Date" and "Comment"

This commit is contained in:
Max Kellermann 2023-03-06 07:47:55 +01:00
parent e8994b43a0
commit d5fafa1340
2 changed files with 4 additions and 0 deletions

2
NEWS
View File

@ -22,6 +22,8 @@ ver 0.24 (not yet released)
- "one-shot" consume mode
* tags
- new tags "TitleSort", "Mood"
* output
- pipewire: map tags "Date" and "Comment"
* switch to C++20
- GCC 10 or clang 11 (or newer) recommended
* static partition configuration

View File

@ -945,6 +945,8 @@ PipeWireOutput::SendTag(const Tag &tag)
} tag_map[] = {
{ TAG_ARTIST, PW_KEY_MEDIA_ARTIST },
{ TAG_TITLE, PW_KEY_MEDIA_TITLE },
{ TAG_DATE, PW_KEY_MEDIA_DATE },
{ TAG_COMMENT, PW_KEY_MEDIA_COMMENT },
};
struct spa_dict_item items[1 + std::size(tag_map)];