diff options
author | Max Kellermann <max@duempel.org> | 2010-01-18 07:52:58 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-01-18 07:52:58 +0100 |
commit | a0a26d3341022552984a3307393a8f701f350edc (patch) | |
tree | 730fca6b454e43ab27ae3b73b3783eba4f0a7baa /src/dbUtils.c | |
parent | 9d4b7ab11305d8a95fcf93ffaedf0bdea0356927 (diff) | |
parent | 760569fc66fca6d866d0692e0212f56458f4180c (diff) | |
download | mpd-a0a26d3341022552984a3307393a8f701f350edc.tar.gz mpd-a0a26d3341022552984a3307393a8f701f350edc.tar.xz mpd-a0a26d3341022552984a3307393a8f701f350edc.zip |
Merge release 0.15.8 from branch 'v0.15.x
Conflicts:
Makefile.am
NEWS
configure.ac
src/decoder/ffmpeg_decoder_plugin.c
src/decoder_thread.c
Diffstat (limited to '')
-rw-r--r-- | src/dbUtils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c index 527628833..858854f28 100644 --- a/src/dbUtils.c +++ b/src/dbUtils.c @@ -256,6 +256,7 @@ visitTag(struct client *client, struct strset *set, struct song *song, enum tag_type tagType) { struct tag *tag = song->tag; + bool found = false; if (tagType == LOCATE_TAG_FILE_TYPE) { song_print_uri(client, song); @@ -268,10 +269,12 @@ 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); + found = true; } } - strset_add(set, ""); + if (!found) + strset_add(set, ""); } struct list_tags_data { |