lastfm_scrobbler fix yellow for targets w/o storage callback
Change-Id: I0a3dbcf8c8c0c72efa2506d1998fd24d228ed91d
This commit is contained in:
parent
053c1596d8
commit
593d9f623d
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,6 @@ http://www.audioscrobbler.net/wiki/Portable_Player_Logging
|
|||
#define logf(...) do { } while(0)
|
||||
#endif
|
||||
|
||||
|
||||
/****************** constants ******************/
|
||||
#define EV_EXIT MAKE_SYS_EVENT(SYS_EVENT_CLS_PRIVATE, 0xFF)
|
||||
#define EV_OTHINSTANCE MAKE_SYS_EVENT(SYS_EVENT_CLS_PRIVATE, 0xFE)
|
||||
|
@ -299,6 +298,7 @@ static void scrobbler_write_cache(void)
|
|||
gCache.pos = 0;
|
||||
}
|
||||
|
||||
#if USING_STORAGE_CALLBACK
|
||||
static void scrobbler_flush_callback(void)
|
||||
{
|
||||
(void) gCache.force_flush;
|
||||
|
@ -315,6 +315,7 @@ static void scrobbler_flush_callback(void)
|
|||
scrobbler_write_cache();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static void scrobbler_add_to_cache(const struct mp3entry *id)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue