From 3e19298c9e6344c21c7e80e1837fe6a387e6c2c7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 11 Jul 2014 22:01:11 +0200 Subject: decoder/sndfile: support more tag types --- NEWS | 1 + src/decoder/plugins/SndfileDecoderPlugin.cxx | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/NEWS b/NEWS index 9073a2a23..de55a0cd5 100644 --- a/NEWS +++ b/NEWS @@ -33,6 +33,7 @@ ver 0.19 (not yet released) - vorbis, flac, opus: honor DESCRIPTION= tag in Xiph-based files as a comment to the song - audiofile: support scanning remote files - audiofile: log libaudiofile errors + - sndfile: support tags "comment", "album", "track", "genre" * encoder: - shine: new encoder plugin * threads: diff --git a/src/decoder/plugins/SndfileDecoderPlugin.cxx b/src/decoder/plugins/SndfileDecoderPlugin.cxx index dbdd5d39b..58fec5b7b 100644 --- a/src/decoder/plugins/SndfileDecoderPlugin.cxx +++ b/src/decoder/plugins/SndfileDecoderPlugin.cxx @@ -228,7 +228,11 @@ static constexpr struct { } sndfile_tags[] = { { SF_STR_TITLE, TAG_TITLE }, { SF_STR_ARTIST, TAG_ARTIST }, + { SF_STR_COMMENT, TAG_COMMENT }, { SF_STR_DATE, TAG_DATE }, + { SF_STR_ALBUM, TAG_ALBUM }, + { SF_STR_TRACKNUMBER, TAG_TRACK }, + { SF_STR_GENRE, TAG_GENRE }, }; static bool -- cgit v1.2.3