aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-05-31 08:47:59 +0200
committerMax Kellermann <max@duempel.org>2010-05-31 08:47:59 +0200
commitdaf6e2b5da39e6b194760169b64f59b7d0bdbf6e (patch)
tree4100ad09d6832b084b9e3494b6f006d6ac285a7a /src
parent71da5b026cc5b76f546754df3e75f9c41c28b5b4 (diff)
downloadmpd-daf6e2b5da39e6b194760169b64f59b7d0bdbf6e.tar.gz
mpd-daf6e2b5da39e6b194760169b64f59b7d0bdbf6e.tar.xz
mpd-daf6e2b5da39e6b194760169b64f59b7d0bdbf6e.zip
decoder/mp4ff: moved code to mp4ff_tag_name_parse()
Diffstat (limited to 'src')
-rw-r--r--src/decoder/mp4ff_decoder_plugin.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/decoder/mp4ff_decoder_plugin.c b/src/decoder/mp4ff_decoder_plugin.c
index cd9daf699..848dfe346 100644
--- a/src/decoder/mp4ff_decoder_plugin.c
+++ b/src/decoder/mp4ff_decoder_plugin.c
@@ -350,6 +350,12 @@ static const char *const mp4ff_tag_names[TAG_NUM_OF_ITEM_TYPES] = {
[TAG_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_stream_tag(struct input_stream *is)
{
@@ -395,7 +401,7 @@ mp4_stream_tag(struct input_stream *is)
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);