From 023f6b6efd5407dc77c1253789f61baabb6607d6 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 12 Jul 2013 12:06:38 -0400 Subject: Get rid of some superfluous single-purpose functions in playback. * Remove explicit tracking of elapsed time of previous track. * Remove function to obtain auto skip flag. * Most playback events now carry the extra information instead and pass 'struct track_event *' for data. * Tweak scrobbler to use PLAYBACK_EVENT_TRACK_FINISH, which makes it cleaner and removes the struct mp3entry. Change-Id: I500d2abb4056a32646496efc3617406e36811ec5 --- apps/gui/wps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/gui/wps.c') diff --git a/apps/gui/wps.c b/apps/gui/wps.c index a3d7a1bcf1..726df6add4 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -1190,7 +1190,7 @@ long gui_wps_show(void) static void track_changed_callback(void *param) { struct wps_state *state = skin_get_global_state(); - state->id3 = (struct mp3entry*)param; + state->id3 = ((struct track_event *)param)->id3; state->nid3 = audio_next_track(); if (state->id3->cuesheet) { -- cgit v1.2.3