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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user