diff options
| author | Miika Pekkarinen <miipekk@ihme.org> | 2006-08-27 14:58:46 +0000 |
|---|---|---|
| committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-08-27 14:58:46 +0000 |
| commit | 9812765086fdcc6f9e74a8db68917edc08eb4eb5 (patch) | |
| tree | 984ee1d8968af9c56a359590268d2a2c68216361 /apps | |
| parent | 987bbdfab7415c693b8672c558d0826d482d1e51 (diff) | |
| download | rockbox-9812765086fdcc6f9e74a8db68917edc08eb4eb5.zip rockbox-9812765086fdcc6f9e74a8db68917edc08eb4eb5.tar.gz rockbox-9812765086fdcc6f9e74a8db68917edc08eb4eb5.tar.bz2 rockbox-9812765086fdcc6f9e74a8db68917edc08eb4eb5.tar.xz | |
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
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/tagcache.c | 9 |
1 files 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 |