diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-11-10 01:09:03 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-11-10 01:09:03 +0000 |
commit | 92a75471505391edd2f8f9af23188b4f7b17bbcb (patch) | |
tree | 7cf738d5c40637942fe09c6a2edd98e34314ad5b /src/audioOutputs/audioOutput_shout.c | |
parent | 598db0d296a8c16e181b488040a324f9ae20cc33 (diff) | |
download | mpd-92a75471505391edd2f8f9af23188b4f7b17bbcb.tar.gz mpd-92a75471505391edd2f8f9af23188b4f7b17bbcb.tar.xz mpd-92a75471505391edd2f8f9af23188b4f7b17bbcb.zip |
begining of metadata rewrite:
now we support genre and date metadata, along with multiple metadata entries
for each type
git-svn-id: https://svn.musicpd.org/mpd/branches/r2562-metadata-handling-rewrite@2567 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/audioOutputs/audioOutput_shout.c')
-rw-r--r-- | src/audioOutputs/audioOutput_shout.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/audioOutputs/audioOutput_shout.c b/src/audioOutputs/audioOutput_shout.c index 7f21a73f4..661acd07d 100644 --- a/src/audioOutputs/audioOutput_shout.c +++ b/src/audioOutputs/audioOutput_shout.c @@ -375,22 +375,20 @@ static void myShout_closeDevice(AudioOutput * audioOutput) { static void copyTagToVorbisComment(ShoutData * sd) { if(sd->tag) { - MpdTagItem * item = sd->tag->tagItems; - - while(item && item->type!=TAG_ITEM_END) { - switch(item->type) { + int i; + + for(i = 0; i < sd->tag->numOfItems; i++) { + switch(sd->tag->items[i].type) { case TAG_ITEM_ARTIST: - addTag("ARTIST", item->value); + addTag("ARTIST", sd->tag->items[i].value); break; case TAG_ITEM_ALBUM: - addTag("ALBUM", item->value); + addTag("ALBUM", sd->tag->items[i].value); break; case TAG_ITEM_TITLE: - addTag("TITLE", item->value); + addTag("TITLE", sd->tag->items[i].value); break; } - - item++; } } } |