Use uniqbuf for unique tags only.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10748 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Miika Pekkarinen 2006-08-25 15:20:10 +00:00
parent 565d46b354
commit 53d26e5bbf

View file

@ -636,7 +636,7 @@ static bool add_uniqbuf(struct tagcache_search *tcs, long id)
int i;
/* If uniq buffer is not defined we must return true for search to work. */
if (tcs->unique_list == NULL)
if (tcs->unique_list == NULL || !tagcache_is_unique_tag(tcs->type))
return true;
for (i = 0; i < tcs->unique_list_count; i++)