From caf907eef137dea6e29468d3311ce8197217900f Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 25 May 2011 08:35:31 +0000 Subject: Workaround an occasional problem where album art or cuesheets might not be ready by the time the track change event is send which can result in the WPS not immediately being aware that the handles are ready. A better solution will be sought that hopefully doesn't require the additional event. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29923 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/gui/wps.c') diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 0103ace53c..e686fcc533 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -1203,6 +1203,11 @@ static void wps_state_init(void) /* add the WPS track event callbacks */ add_event(PLAYBACK_EVENT_TRACK_CHANGE, false, track_changed_callback); add_event(PLAYBACK_EVENT_NEXTTRACKID3_AVAILABLE, false, nextid3available_callback); +#if CONFIG_CODEC == SWCODEC + /* Use the same callback as ..._TRACK_CHANGE for when remaining handles have + finished */ + add_event(PLAYBACK_EVENT_CUR_TRACK_READY, false, track_changed_callback); +#endif #ifdef AUDIO_FAST_SKIP_PREVIEW add_event(PLAYBACK_EVENT_TRACK_SKIP, false, track_skip_callback); #endif -- cgit v1.2.3