aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/ogg_plugin.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2005-03-05 22:24:10 +0000
committerWarren Dukes <warren.dukes@gmail.com>2005-03-05 22:24:10 +0000
commit3bdee5521711f338b9ce0701d51543bee24008fc (patch)
tree45e61023164f78259095f299e32a5d386a405bc3 /src/inputPlugins/ogg_plugin.c
parent4b016cafa1e44294605467dd95efb421b96574a5 (diff)
downloadmpd-3bdee5521711f338b9ce0701d51543bee24008fc.tar.gz
mpd-3bdee5521711f338b9ce0701d51543bee24008fc.tar.xz
mpd-3bdee5521711f338b9ce0701d51543bee24008fc.zip
added composer, performer, and comment metadata items
git-svn-id: https://svn.musicpd.org/mpd/trunk@3022 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputPlugins/ogg_plugin.c')
-rw-r--r--src/inputPlugins/ogg_plugin.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/inputPlugins/ogg_plugin.c b/src/inputPlugins/ogg_plugin.c
index 472c2f229..137c4176c 100644
--- a/src/inputPlugins/ogg_plugin.c
+++ b/src/inputPlugins/ogg_plugin.c
@@ -164,6 +164,14 @@ MpdTag * oggCommentsParse(char ** comments) {
if(!ret) ret = newMpdTag();
addItemToMpdTag(ret, TAG_ITEM_DATE, temp);
}
+ else if((temp = ogg_parseComment(*comments,"composer"))) {
+ if(!ret) ret = newMpdTag();
+ addItemToMpdTag(ret, TAG_ITEM_COMPOSER, temp);
+ }
+ else if((temp = ogg_parseComment(*comments,"performer"))) {
+ if(!ret) ret = newMpdTag();
+ addItemToMpdTag(ret, TAG_ITEM_PERFORMER, temp);
+ }
comments++;
}