diff options
Diffstat (limited to 'apps/scrobbler.c')
-rw-r--r-- | apps/scrobbler.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/scrobbler.c b/apps/scrobbler.c index b0f65158e8..83f546b59f 100644 --- a/apps/scrobbler.c +++ b/apps/scrobbler.c | |||
@@ -128,11 +128,11 @@ static void write_cache(void) | |||
128 | cache_pos = 0; | 128 | cache_pos = 0; |
129 | } | 129 | } |
130 | 130 | ||
131 | static bool scrobbler_flush_callback(void) | 131 | static void scrobbler_flush_callback(void *data) |
132 | { | 132 | { |
133 | (void)data; | ||
133 | if (scrobbler_initialised && cache_pos) | 134 | if (scrobbler_initialised && cache_pos) |
134 | write_cache(); | 135 | write_cache(); |
135 | return true; | ||
136 | } | 136 | } |
137 | 137 | ||
138 | static void add_to_cache(unsigned long play_length) | 138 | static void add_to_cache(unsigned long play_length) |
@@ -185,8 +185,9 @@ static void add_to_cache(unsigned long play_length) | |||
185 | 185 | ||
186 | } | 186 | } |
187 | 187 | ||
188 | void scrobbler_change_event(struct mp3entry *id) | 188 | static void scrobbler_change_event(void *data) |
189 | { | 189 | { |
190 | struct mp3entry *id = (struct mp3entry*)data; | ||
190 | /* add entry using the previous scrobbler_entry and timestamp */ | 191 | /* add entry using the previous scrobbler_entry and timestamp */ |
191 | if (pending) | 192 | if (pending) |
192 | add_to_cache(audio_prev_elapsed()); | 193 | add_to_cache(audio_prev_elapsed()); |