diff options
author | Max Kellermann <max@duempel.org> | 2008-08-29 09:38:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-29 09:38:29 +0200 |
commit | ad0e09b2db5ebf428acc98f90c3ef0dd171bebbb (patch) | |
tree | 8d3421da76a85ec1918a4fc479d2d60b5a3904d1 /src/dbUtils.c | |
parent | 6f72fe3ecffd8ee8218fc5a19ec45b0447323c12 (diff) | |
download | mpd-ad0e09b2db5ebf428acc98f90c3ef0dd171bebbb.tar.gz mpd-ad0e09b2db5ebf428acc98f90c3ef0dd171bebbb.tar.xz mpd-ad0e09b2db5ebf428acc98f90c3ef0dd171bebbb.zip |
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.
Diffstat (limited to 'src/dbUtils.c')
-rw-r--r-- | src/dbUtils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c index 1d66e316d..1c758476d 100644 --- a/src/dbUtils.c +++ b/src/dbUtils.c @@ -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); } } } |