From dae6ecb680c8d46e055a9c103b9a3536df51d230 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 24 Oct 2013 20:00:01 +0200 Subject: decoder/opus: support all core tag names --- src/decoder/OpusTags.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/decoder') 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 #include @@ -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); } -- cgit v1.2.3