aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorRasmus Steinke <rasi13@gmx.de>2009-01-15 00:42:35 +0100
committerMax Kellermann <max@duempel.org>2009-01-15 06:51:58 +0100
commit9b0ce18144f8d25bea54cb649508a5268c92efa6 (patch)
treed17205fcaed2fdaf99dae28e57b63d9c34c57865 /src/decoder
parent9e55a08d79a5e20f745c17543ff38e7a59c7d3e8 (diff)
downloadmpd-9b0ce18144f8d25bea54cb649508a5268c92efa6.tar.gz
mpd-9b0ce18144f8d25bea54cb649508a5268c92efa6.tar.xz
mpd-9b0ce18144f8d25bea54cb649508a5268c92efa6.zip
oggvorbis: map "Album Artist" to "AlbumArtist"
This patch allows mpd to recognise the albumartist tag in the way foobar2000 and others write it to files.
Diffstat (limited to '')
-rw-r--r--src/decoder/oggvorbis_plugin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/decoder/oggvorbis_plugin.c b/src/decoder/oggvorbis_plugin.c
index e7df60326..63722bdd8 100644
--- a/src/decoder/oggvorbis_plugin.c
+++ b/src/decoder/oggvorbis_plugin.c
@@ -168,7 +168,9 @@ vorbis_parse_comment(struct tag *tag, const char *comment)
if (vorbis_copy_comment(tag, comment, VORBIS_COMMENT_TRACK_KEY,
TAG_ITEM_TRACK) ||
vorbis_copy_comment(tag, comment, VORBIS_COMMENT_DISC_KEY,
- TAG_ITEM_DISC))
+ TAG_ITEM_DISC) ||
+ vorbis_copy_comment(tag, comment, "album artist",
+ TAG_ITEM_ALBUM_ARTIST))
return;
for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; ++i)