aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbUtils.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-29 09:38:29 +0200
committerEric Wong <normalperson@yhbt.net>2008-09-02 00:15:38 -0700
commit6aa1a7a2565bd1789fd34c7c71d5dbb34eaa1fee (patch)
tree8b6022cf1239a0a6962377827b1cb519b20f43ab /src/dbUtils.c
parent323835240107ba08c080bbd8ed7aebe742fc4475 (diff)
downloadmpd-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 '')
-rw-r--r--src/dbUtils.c4
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);
}
}
}