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:
parent
2dbe569aff
commit
55a63609ef
5 changed files with 6 additions and 4 deletions
|
@ -537,7 +537,7 @@ static struct mp3entry* get_mp3entry_from_offset(int offset, char **filename)
|
||||||
fname = playlist_peek(offset, filename_buf, sizeof(filename_buf));
|
fname = playlist_peek(offset, filename_buf, sizeof(filename_buf));
|
||||||
*filename = (char*)fname;
|
*filename = (char*)fname;
|
||||||
#if CONFIG_CODEC == SWCODEC
|
#if CONFIG_CODEC == SWCODEC
|
||||||
#ifdef HAVE_TC_RAMCACHE
|
#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
|
||||||
static struct mp3entry tempid3;
|
static struct mp3entry tempid3;
|
||||||
if (tagcache_fill_tags(&tempid3, fname))
|
if (tagcache_fill_tags(&tempid3, fname))
|
||||||
{
|
{
|
||||||
|
|
|
@ -703,7 +703,7 @@ static const struct plugin_api rockbox_api = {
|
||||||
tagcache_retrieve,
|
tagcache_retrieve,
|
||||||
tagcache_search_finish,
|
tagcache_search_finish,
|
||||||
tagcache_get_numeric,
|
tagcache_get_numeric,
|
||||||
#ifdef HAVE_TC_RAMCACHE
|
#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
|
||||||
tagcache_fill_tags,
|
tagcache_fill_tags,
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -874,7 +874,7 @@ struct plugin_api {
|
||||||
int tag, char *buf, long size);
|
int tag, char *buf, long size);
|
||||||
void (*tagcache_search_finish)(struct tagcache_search *tcs);
|
void (*tagcache_search_finish)(struct tagcache_search *tcs);
|
||||||
long (*tagcache_get_numeric)(const struct tagcache_search *tcs, int tag);
|
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);
|
bool (*tagcache_fill_tags)(struct mp3entry *id3, const char *filename);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -948,7 +948,7 @@ bool get_albumart_for_index_from_db(const int slide_index, char *buf,
|
||||||
struct mp3entry id3;
|
struct mp3entry id3;
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
#ifdef HAVE_TC_RAMCACHE
|
#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
|
||||||
if (rb->tagcache_fill_tags(&id3, tcs.result))
|
if (rb->tagcache_fill_tags(&id3, tcs.result))
|
||||||
{
|
{
|
||||||
rb->strlcpy(id3.path, tcs.result, sizeof(id3.path));
|
rb->strlcpy(id3.path, tcs.result, sizeof(id3.path));
|
||||||
|
|
|
@ -239,7 +239,9 @@ void tagcache_screensync_enable(bool state);
|
||||||
|
|
||||||
#ifdef HAVE_TC_RAMCACHE
|
#ifdef HAVE_TC_RAMCACHE
|
||||||
bool tagcache_is_ramcache(void);
|
bool tagcache_is_ramcache(void);
|
||||||
|
#ifdef HAVE_DIRCACHE
|
||||||
bool tagcache_fill_tags(struct mp3entry *id3, const char *filename);
|
bool tagcache_fill_tags(struct mp3entry *id3, const char *filename);
|
||||||
|
#endif
|
||||||
void tagcache_unload_ramcache(void);
|
void tagcache_unload_ramcache(void);
|
||||||
#endif
|
#endif
|
||||||
void tagcache_init(void) INIT_ATTR;
|
void tagcache_init(void) INIT_ATTR;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue