aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-06-30 21:36:00 +0200
committerMax Kellermann <max@duempel.org>2010-06-30 21:36:00 +0200
commit8e3eace289e2e2481221426ea9e6ab38d80be5fe (patch)
tree1f193b367a562e946ab22f6f316157481d3a2b1c /src
parent284659034d7ec0add185e03a27434b2bd7d88216 (diff)
downloadmpd-8e3eace289e2e2481221426ea9e6ab38d80be5fe.tar.gz
mpd-8e3eace289e2e2481221426ea9e6ab38d80be5fe.tar.xz
mpd-8e3eace289e2e2481221426ea9e6ab38d80be5fe.zip
decoder/mp4ff: moved code to mp4ff_tag_name_parse()
Diffstat (limited to '')
-rw-r--r--src/decoder/mp4ff_plugin.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/decoder/mp4ff_plugin.c b/src/decoder/mp4ff_plugin.c
index 5e1251d82..d94084e90 100644
--- a/src/decoder/mp4ff_plugin.c
+++ b/src/decoder/mp4ff_plugin.c
@@ -353,6 +353,12 @@ static const char *const mp4ff_tag_names[TAG_NUM_OF_ITEM_TYPES] = {
[TAG_ITEM_PERFORMER] = "band",
};
+static enum tag_type
+mp4ff_tag_name_parse(const char *name)
+{
+ return tag_table_lookup(mp4ff_tag_names, name);
+}
+
static struct tag *
mp4_tag_dup(const char *file)
{
@@ -408,7 +414,7 @@ mp4_tag_dup(const char *file)
mp4ff_meta_get_by_index(mp4fh, i, &item, &value);
- enum tag_type type = tag_table_lookup(mp4ff_tag_names, item);
+ enum tag_type type = mp4ff_tag_name_parse(item);
if (type != TAG_NUM_OF_ITEM_TYPES)
tag_add_item(ret, type, value);