tag: converted MpdTag.items to a pointer list

This prepares the following patches, which aim to reduce MPD's memory
usage: we plan to share tag_item instances, instead of just their
values.
This commit is contained in:
Max Kellermann
2008-08-29 09:38:29 +02:00
parent 6f72fe3ecf
commit ad0e09b2db
4 changed files with 20 additions and 17 deletions

View File

@@ -268,8 +268,8 @@ static void visitTag(int fd, Song * song, enum tag_type tagType)
return;
for (i = 0; i < tag->numOfItems; i++) {
if (tag->items[i].type == tagType) {
visitInTagTracker(tagType, tag->items[i].value);
if (tag->items[i]->type == tagType) {
visitInTagTracker(tagType, tag->items[i]->value);
}
}
}