diff options
author | Max Kellermann <max@duempel.org> | 2008-08-29 09:38:29 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-02 00:15:38 -0700 |
commit | 6aa1a7a2565bd1789fd34c7c71d5dbb34eaa1fee (patch) | |
tree | 8b6022cf1239a0a6962377827b1cb519b20f43ab /src/dbUtils.c | |
parent | 323835240107ba08c080bbd8ed7aebe742fc4475 (diff) | |
download | mpd-6aa1a7a2565bd1789fd34c7c71d5dbb34eaa1fee.tar.gz mpd-6aa1a7a2565bd1789fd34c7c71d5dbb34eaa1fee.tar.xz mpd-6aa1a7a2565bd1789fd34c7c71d5dbb34eaa1fee.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 3379b9bb2..d39c9908c 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); } } } |