forked from len0rd/rockbox
Fixed red. HWCODEC platforms still use the old api.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16550 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
104fa099cc
commit
f98f76e415
1 changed files with 8 additions and 0 deletions
|
@ -224,7 +224,11 @@ int scrobbler_init(void)
|
|||
|
||||
scrobbler_cache = buffer_alloc(SCROBBLER_MAX_CACHE*SCROBBLER_CACHE_LEN);
|
||||
|
||||
#if CONFIG_CODEC == SWCODEC
|
||||
playback_add_event(PLAYBACK_EVENT_TRACK_CHANGE, scrobbler_change_event);
|
||||
#else
|
||||
audio_set_track_changed_event(&scrobbler_change_event);
|
||||
#endif
|
||||
cache_pos = 0;
|
||||
pending = false;
|
||||
scrobbler_initialised = true;
|
||||
|
@ -259,7 +263,11 @@ void scrobbler_shutdown(void)
|
|||
|
||||
if (scrobbler_initialised)
|
||||
{
|
||||
#if CONFIG_CODEC == SWCODEC
|
||||
playback_remove_event(PLAYBACK_EVENT_TRACK_CHANGE, scrobbler_change_event);
|
||||
#else
|
||||
audio_set_track_changed_event(NULL);
|
||||
#endif
|
||||
scrobbler_initialised = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue