From 92a75471505391edd2f8f9af23188b4f7b17bbcb Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Wed, 10 Nov 2004 01:09:03 +0000 Subject: 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 --- src/audioOutputs/audioOutput_shout.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/audioOutputs/audioOutput_shout.c') 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++; } } } -- cgit v1.2.3