1
0
Fork 0
forked from len0rd/rockbox

use correct condition for #if for tagcache_fill_tags().

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28188 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Teruaki Kawashima 2010-09-30 13:09:50 +00:00
parent 2dbe569aff
commit 55a63609ef
5 changed files with 6 additions and 4 deletions

View file

@ -537,7 +537,7 @@ static struct mp3entry* get_mp3entry_from_offset(int offset, char **filename)
fname = playlist_peek(offset, filename_buf, sizeof(filename_buf));
*filename = (char*)fname;
#if CONFIG_CODEC == SWCODEC
#ifdef HAVE_TC_RAMCACHE
#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
static struct mp3entry tempid3;
if (tagcache_fill_tags(&tempid3, fname))
{

View file

@ -703,7 +703,7 @@ static const struct plugin_api rockbox_api = {
tagcache_retrieve,
tagcache_search_finish,
tagcache_get_numeric,
#ifdef HAVE_TC_RAMCACHE
#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
tagcache_fill_tags,
#endif
#endif

View file

@ -874,7 +874,7 @@ struct plugin_api {
int tag, char *buf, long size);
void (*tagcache_search_finish)(struct tagcache_search *tcs);
long (*tagcache_get_numeric)(const struct tagcache_search *tcs, int tag);
#ifdef HAVE_TC_RAMCACHE
#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
bool (*tagcache_fill_tags)(struct mp3entry *id3, const char *filename);
#endif
#endif

View file

@ -948,7 +948,7 @@ bool get_albumart_for_index_from_db(const int slide_index, char *buf,
struct mp3entry id3;
int fd;
#ifdef HAVE_TC_RAMCACHE
#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
if (rb->tagcache_fill_tags(&id3, tcs.result))
{
rb->strlcpy(id3.path, tcs.result, sizeof(id3.path));

View file

@ -239,7 +239,9 @@ void tagcache_screensync_enable(bool state);
#ifdef HAVE_TC_RAMCACHE
bool tagcache_is_ramcache(void);
#ifdef HAVE_DIRCACHE
bool tagcache_fill_tags(struct mp3entry *id3, const char *filename);
#endif
void tagcache_unload_ramcache(void);
#endif
void tagcache_init(void) INIT_ATTR;