From 9812765086fdcc6f9e74a8db68917edc08eb4eb5 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sun, 27 Aug 2006 14:58:46 +0000 Subject: Fixed: With dircache+tagcache in RAM using Search by filename->Player freezes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10769 a1c6a512-1295-4272-9138-f99709370657 --- apps/tagcache.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/tagcache.c b/apps/tagcache.c index d66722e..14445d6 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -1075,8 +1075,12 @@ static bool get_next(struct tagcache_search *tcs) return false; } tcs->entry_count--; - tcs->result_seek = tcs->position; + if (tagcache_is_unique_tag(tcs->type)) + tcs->result_seek = tcs->position; + else + tcs->result_seek = tcs->idx_id; + # ifdef HAVE_DIRCACHE if (tcs->type == tag_filename) { @@ -1095,9 +1099,6 @@ static bool get_next(struct tagcache_search *tcs) tcs->result_len = strlen(tcs->result) + 1; tcs->idx_id = ep->idx_id; - if (!tagcache_is_unique_tag(tcs->type)) - tcs->result_seek = tcs->idx_id; - return true; } else -- cgit v1.1