diff options
author | Frank Mulder <frankmulder2003@yahoo.com> | 2008-12-29 11:29:01 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-02 17:44:43 +0100 |
commit | e93ad5d311ef93d4669ab663ea74f946d030db3a (patch) | |
tree | ece3f4bccdfe67c3e896432c0971c28c01f348b0 /src | |
parent | 22c5b20fa2f0cc4dc7519441fbba64294841700c (diff) | |
download | mpd-e93ad5d311ef93d4669ab663ea74f946d030db3a.tar.gz mpd-e93ad5d311ef93d4669ab663ea74f946d030db3a.tar.xz mpd-e93ad5d311ef93d4669ab663ea74f946d030db3a.zip |
mp4: support the writer/composer tag
I tried to search for a certain composer in my collection, but only
non-mp4 files showed up. The source code reveals that this tag is not
read. This can be fixed by reading the 'Writer' tag field, in
mp4_plugin.c, in function mp4_load_tag.
I actually tried this, and after compiling with those lines added,
also mp4 (.m4a) files showed up when searching for a composer.
Diffstat (limited to 'src')
-rw-r--r-- | src/decoder/mp4_plugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/decoder/mp4_plugin.c b/src/decoder/mp4_plugin.c index 67d85ba0b..dd57a8e13 100644 --- a/src/decoder/mp4_plugin.c +++ b/src/decoder/mp4_plugin.c @@ -387,6 +387,8 @@ mp4_load_tag(const char *file) tag_add_item(ret, TAG_ITEM_GENRE, value); } else if (0 == strcasecmp("date", item)) { tag_add_item(ret, TAG_ITEM_DATE, value); + } else if (0 == strcasecmp("writer", item)) { + tag_add_item(ret, TAG_ITEM_COMPOSER, value); } free(item); |