forked from len0rd/rockbox
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
This commit is contained in:
parent
f83d6eb145
commit
408dfd65ad
1 changed files with 5 additions and 5 deletions
|
|
@ -969,13 +969,15 @@ static bool build_lookup_list(struct tagcache_search *tcs)
|
||||||
while (ecread(tcs->masterfd, &entry, 1, index_entry_ec, tc_stat.econ)
|
while (ecread(tcs->masterfd, &entry, 1, index_entry_ec, tc_stat.econ)
|
||||||
== sizeof(struct index_entry))
|
== sizeof(struct index_entry))
|
||||||
{
|
{
|
||||||
|
if (tcs->seek_list_count == SEEK_LIST_SIZE)
|
||||||
|
break ;
|
||||||
|
|
||||||
|
tcs->seek_pos++;
|
||||||
|
|
||||||
/* Check if entry has been deleted. */
|
/* Check if entry has been deleted. */
|
||||||
if (entry.flag & FLAG_DELETED)
|
if (entry.flag & FLAG_DELETED)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (tcs->seek_list_count == SEEK_LIST_SIZE)
|
|
||||||
break ;
|
|
||||||
|
|
||||||
/* Go through all filters.. */
|
/* Go through all filters.. */
|
||||||
for (i = 0; i < tcs->filter_count; i++)
|
for (i = 0; i < tcs->filter_count; i++)
|
||||||
{
|
{
|
||||||
|
|
@ -983,8 +985,6 @@ static bool build_lookup_list(struct tagcache_search *tcs)
|
||||||
break ;
|
break ;
|
||||||
}
|
}
|
||||||
|
|
||||||
tcs->seek_pos++;
|
|
||||||
|
|
||||||
if (i < tcs->filter_count)
|
if (i < tcs->filter_count)
|
||||||
continue ;
|
continue ;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue