Commit a51fada1 authored by Frank Mulder's avatar Frank Mulder Committed by Max Kellermann

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.
parent 702d6a64
...@@ -387,6 +387,8 @@ mp4_load_tag(const char *file) ...@@ -387,6 +387,8 @@ mp4_load_tag(const char *file)
tag_add_item(ret, TAG_ITEM_GENRE, value); tag_add_item(ret, TAG_ITEM_GENRE, value);
} else if (0 == strcasecmp("date", item)) { } else if (0 == strcasecmp("date", item)) {
tag_add_item(ret, TAG_ITEM_DATE, value); tag_add_item(ret, TAG_ITEM_DATE, value);
} else if (0 == strcasecmp("writer", item)) {
tag_add_item(ret, TAG_ITEM_COMPOSER, value);
} }
free(item); free(item);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment