aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-24 20:00:01 +0200
committerMax Kellermann <max@duempel.org>2013-10-24 20:01:14 +0200
commitdae6ecb680c8d46e055a9c103b9a3536df51d230 (patch)
treeb7e44b72b7096bfecab6e4ac691139d971337e56 /src/decoder
parenta57a7b1a768b661354aacf73272369b9d891864a (diff)
downloadmpd-dae6ecb680c8d46e055a9c103b9a3536df51d230.tar.gz
mpd-dae6ecb680c8d46e055a9c103b9a3536df51d230.tar.xz
mpd-dae6ecb680c8d46e055a9c103b9a3536df51d230.zip
decoder/opus: support all core tag names
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/OpusTags.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/decoder/OpusTags.cxx b/src/decoder/OpusTags.cxx
index 40255537d..ed2b054b4 100644
--- a/src/decoder/OpusTags.cxx
+++ b/src/decoder/OpusTags.cxx
@@ -22,6 +22,7 @@
#include "OpusReader.hxx"
#include "XiphTags.hxx"
#include "tag/TagHandler.hxx"
+#include "tag/Tag.hxx"
#include <stdint.h>
#include <string.h>
@@ -31,6 +32,10 @@ gcc_pure
static TagType
ParseOpusTagName(const char *name)
{
+ TagType type = tag_name_parse_i(name);
+ if (type != TAG_NUM_OF_ITEM_TYPES)
+ return type;
+
return tag_table_lookup_i(xiph_tags, name);
}