From 9c0b54a80c1b1fa0fe216926bb897c8e1e6e1089 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Mon, 24 Jul 2006 12:10:50 +0000 Subject: 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 --- apps/tagcache.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps') 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) if (last_pos > 0) lseek(fd, last_pos, SEEK_SET); + else + lseek(fd, sizeof(struct tagcache_header), SEEK_SET); while (true) { @@ -1236,6 +1238,8 @@ static void add_tagcache(const char *path) if (!ret) return ; + // logf("-> %s", path); + genrestr = id3_get_genre(&track.id3); check_if_empty(&track.id3.title); @@ -3201,7 +3205,7 @@ static void tagcache_thread(void) if (!stat.ramcache && global_settings.tagcache_ram) { load_ramcache(); - if (stat.ramcache) + if (stat.ramcache && global_settings.tagcache_autoupdate) build_tagcache(); } else -- cgit v1.2.3