diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2008-03-08 00:02:51 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2008-03-08 00:02:51 +0000 |
commit | f98f76e415931b6d7f44a448ffcef48da792e3c0 (patch) | |
tree | 8fb3c07d9873e0c25fb74c57f8d7a8da2a3e7867 /apps/scrobbler.c | |
parent | 104fa099cce41c1ab51bb12eec16401f95e6bbdb (diff) |
Fixed red. HWCODEC platforms still use the old api.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16550 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/scrobbler.c')
-rw-r--r-- | apps/scrobbler.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/scrobbler.c b/apps/scrobbler.c index 6398fd1741..16869bf18f 100644 --- a/apps/scrobbler.c +++ b/apps/scrobbler.c @@ -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; } } |