diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2007-03-11 08:52:33 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2007-03-11 08:52:33 +0000 |
commit | 408dfd65ad61181b3612cb11574c9ff547e42d24 (patch) | |
tree | d22ec20882dea7d17bdb84518ca565d5caefda0a /apps | |
parent | f83d6eb145aab4646968e9a69bdd9c56e5a88926 (diff) | |
download | rockbox-408dfd65ad61181b3612cb11574c9ff547e42d24.tar.gz rockbox-408dfd65ad61181b3612cb11574c9ff547e42d24.zip |
Fixed database displaying duplicate entries after deleting tracks and database not loaded to ram.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12720 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/tagcache.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 3d84b4ca89..0ddf2b0228 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -969,13 +969,15 @@ static bool build_lookup_list(struct tagcache_search *tcs) | |||
969 | while (ecread(tcs->masterfd, &entry, 1, index_entry_ec, tc_stat.econ) | 969 | while (ecread(tcs->masterfd, &entry, 1, index_entry_ec, tc_stat.econ) |
970 | == sizeof(struct index_entry)) | 970 | == sizeof(struct index_entry)) |
971 | { | 971 | { |
972 | if (tcs->seek_list_count == SEEK_LIST_SIZE) | ||
973 | break ; | ||
974 | |||
975 | tcs->seek_pos++; | ||
976 | |||
972 | /* Check if entry has been deleted. */ | 977 | /* Check if entry has been deleted. */ |
973 | if (entry.flag & FLAG_DELETED) | 978 | if (entry.flag & FLAG_DELETED) |
974 | continue; | 979 | continue; |
975 | 980 | ||
976 | if (tcs->seek_list_count == SEEK_LIST_SIZE) | ||
977 | break ; | ||
978 | |||
979 | /* Go through all filters.. */ | 981 | /* Go through all filters.. */ |
980 | for (i = 0; i < tcs->filter_count; i++) | 982 | for (i = 0; i < tcs->filter_count; i++) |
981 | { | 983 | { |
@@ -983,8 +985,6 @@ static bool build_lookup_list(struct tagcache_search *tcs) | |||
983 | break ; | 985 | break ; |
984 | } | 986 | } |
985 | 987 | ||
986 | tcs->seek_pos++; | ||
987 | |||
988 | if (i < tcs->filter_count) | 988 | if (i < tcs->filter_count) |
989 | continue ; | 989 | continue ; |
990 | 990 | ||