aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-27 16:49:04 +0100
committerMax Kellermann <max@duempel.org>2009-12-27 16:49:04 +0100
commitd66c055fec3923dd38e5b28d74c1c4e7e70040db (patch)
tree3f288710e887e4202e95af4205786b2a5ee25985 /src
parent915d1d0738c1327d30ad1d2a9d58fa96fb136db8 (diff)
downloadmpd-d66c055fec3923dd38e5b28d74c1c4e7e70040db.tar.gz
mpd-d66c055fec3923dd38e5b28d74c1c4e7e70040db.tar.xz
mpd-d66c055fec3923dd38e5b28d74c1c4e7e70040db.zip
dbUtils: return multiple tag values per song
When collecting tag values for the result set, add all of a song's tag values of the searched type. This affects the "list" command. Previously, "list" only considered the first tag value of a song.
Diffstat (limited to 'src')
-rw-r--r--src/dbUtils.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c
index f89148c1b..fa2cfa27a 100644
--- a/src/dbUtils.c
+++ b/src/dbUtils.c
@@ -246,7 +246,6 @@ visitTag(struct client *client, struct strset *set,
for (unsigned i = 0; i < tag->num_items; i++) {
if (tag->items[i]->type == tagType) {
strset_add(set, tag->items[i]->value);
- return;
}
}