summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2008-03-09 20:33:19 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2008-03-09 20:33:19 +0000
commit6ab1c90513922212788e6abd9c426d6884b64cbe (patch)
treeabba09e88a45ad6a97d7fac8c4282b7295fb9076 /apps
parent7317139eb487ce3a59f0895c8edcfb1a2c8109f7 (diff)
FS#8707 - Enable "Load to RAM" (HAS_TC_RAMCACHE) compilation without Directory Cache (HAS_DIRCACHE).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16594 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/playback.c2
-rw-r--r--apps/tagcache.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/playback.c b/apps/playback.c
index cb9ed3e162..b36f68f135 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -570,7 +570,7 @@ struct mp3entry* audio_current_track(void)
if (!filename)
filename = "No file!";
-#ifdef HAVE_TC_RAMCACHE
+#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
if (tagcache_fill_tags(&temp_id3, filename))
return &temp_id3;
#endif
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 926ba7b3c7..d7e1fa1cfc 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -3794,10 +3794,10 @@ static bool load_tagcache(void)
# ifdef HAVE_DIRCACHE
while (dircache_is_initializing())
sleep(1);
+
+ dircache_set_appflag(DIRCACHE_APPFLAG_TAGCACHE);
# endif
- dircache_set_appflag(DIRCACHE_APPFLAG_TAGCACHE);
-
logf("loading tagcache to ram...");
fd = open(TAGCACHE_FILE_MASTER, O_RDONLY);