diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-07-24 12:10:50 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-07-24 12:10:50 +0000 |
commit | 9c0b54a80c1b1fa0fe216926bb897c8e1e6e1089 (patch) | |
tree | b9b0e5ef14126d304424604fc37ec31fc31a58e4 /apps | |
parent | b74ce4cbdedb31a65d3db68723b48c8c4c564056 (diff) | |
download | rockbox-9c0b54a80c1b1fa0fe216926bb897c8e1e6e1089.tar.gz rockbox-9c0b54a80c1b1fa0fe216926bb897c8e1e6e1089.zip |
Fixed bug in finding entry from disk by filename and not starting auto
update unless proper setting has been enabled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10307 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/tagcache.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 171325c679..7296650e83 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -325,6 +325,8 @@ static long find_entry_disk(const char *filename) | |||
325 | 325 | ||
326 | if (last_pos > 0) | 326 | if (last_pos > 0) |
327 | lseek(fd, last_pos, SEEK_SET); | 327 | lseek(fd, last_pos, SEEK_SET); |
328 | else | ||
329 | lseek(fd, sizeof(struct tagcache_header), SEEK_SET); | ||
328 | 330 | ||
329 | while (true) | 331 | while (true) |
330 | { | 332 | { |
@@ -1236,6 +1238,8 @@ static void add_tagcache(const char *path) | |||
1236 | if (!ret) | 1238 | if (!ret) |
1237 | return ; | 1239 | return ; |
1238 | 1240 | ||
1241 | // logf("-> %s", path); | ||
1242 | |||
1239 | genrestr = id3_get_genre(&track.id3); | 1243 | genrestr = id3_get_genre(&track.id3); |
1240 | 1244 | ||
1241 | check_if_empty(&track.id3.title); | 1245 | check_if_empty(&track.id3.title); |
@@ -3201,7 +3205,7 @@ static void tagcache_thread(void) | |||
3201 | if (!stat.ramcache && global_settings.tagcache_ram) | 3205 | if (!stat.ramcache && global_settings.tagcache_ram) |
3202 | { | 3206 | { |
3203 | load_ramcache(); | 3207 | load_ramcache(); |
3204 | if (stat.ramcache) | 3208 | if (stat.ramcache && global_settings.tagcache_autoupdate) |
3205 | build_tagcache(); | 3209 | build_tagcache(); |
3206 | } | 3210 | } |
3207 | else | 3211 | else |