diff options
author | Michael Hohmuth <sideral@rockbox.org> | 2011-05-11 22:37:46 +0000 |
---|---|---|
committer | Michael Hohmuth <sideral@rockbox.org> | 2011-05-11 22:37:46 +0000 |
commit | bc315ad7312ab5d170c6d73bd1c40c414e780d52 (patch) | |
tree | 58e437546411517521048c99a690e54729f34658 /apps/tagcache.c | |
parent | 0e7c04e57d48ae5b9d6cb23c58a6e6f0e15c306f (diff) | |
download | rockbox-bc315ad7312ab5d170c6d73bd1c40c414e780d52.tar.gz rockbox-bc315ad7312ab5d170c6d73bd1c40c414e780d52.zip |
FS#12076 - DB stats resurrection: If the filename was changed, require
all three of album, artist, and title tags to match for resurrection
to take place.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29858 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 7555781cbe..9f8ce315f3 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -2311,7 +2311,7 @@ static bool build_numeric_indices(struct tagcache_header *h, int tmpfd) | |||
2311 | * If tag_filename matches, no further checking necessary. | 2311 | * If tag_filename matches, no further checking necessary. |
2312 | * | 2312 | * |
2313 | * For string hashes: tag_artist, tag_album, tag_title | 2313 | * For string hashes: tag_artist, tag_album, tag_title |
2314 | * - Two of these must match | 2314 | * - All three of these must match |
2315 | */ | 2315 | */ |
2316 | for (j = 0; j < count; j++) | 2316 | for (j = 0; j < count; j++) |
2317 | { | 2317 | { |
@@ -2335,7 +2335,7 @@ static bool build_numeric_indices(struct tagcache_header *h, int tmpfd) | |||
2335 | tmpdb_match(tag_album); | 2335 | tmpdb_match(tag_album); |
2336 | tmpdb_match(tag_title); | 2336 | tmpdb_match(tag_title); |
2337 | 2337 | ||
2338 | if (match_count < 2) | 2338 | if (match_count < 3) |
2339 | { | 2339 | { |
2340 | /* Still no match found, give up. */ | 2340 | /* Still no match found, give up. */ |
2341 | continue; | 2341 | continue; |