diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-05-25 08:35:31 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-05-25 08:35:31 +0000 |
commit | caf907eef137dea6e29468d3311ce8197217900f (patch) | |
tree | 1e2b818d93277d7809d7de973edbabe4646333fe /apps/gui/wps.c | |
parent | 2e3162f039fdb4d48aa5c9a1bf6c11ac9439a514 (diff) | |
download | rockbox-caf907eef137dea6e29468d3311ce8197217900f.tar.gz rockbox-caf907eef137dea6e29468d3311ce8197217900f.zip |
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
Diffstat (limited to 'apps/gui/wps.c')
-rw-r--r-- | apps/gui/wps.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) | |||
1203 | /* add the WPS track event callbacks */ | 1203 | /* add the WPS track event callbacks */ |
1204 | add_event(PLAYBACK_EVENT_TRACK_CHANGE, false, track_changed_callback); | 1204 | add_event(PLAYBACK_EVENT_TRACK_CHANGE, false, track_changed_callback); |
1205 | add_event(PLAYBACK_EVENT_NEXTTRACKID3_AVAILABLE, false, nextid3available_callback); | 1205 | add_event(PLAYBACK_EVENT_NEXTTRACKID3_AVAILABLE, false, nextid3available_callback); |
1206 | #if CONFIG_CODEC == SWCODEC | ||
1207 | /* Use the same callback as ..._TRACK_CHANGE for when remaining handles have | ||
1208 | finished */ | ||
1209 | add_event(PLAYBACK_EVENT_CUR_TRACK_READY, false, track_changed_callback); | ||
1210 | #endif | ||
1206 | #ifdef AUDIO_FAST_SKIP_PREVIEW | 1211 | #ifdef AUDIO_FAST_SKIP_PREVIEW |
1207 | add_event(PLAYBACK_EVENT_TRACK_SKIP, false, track_skip_callback); | 1212 | add_event(PLAYBACK_EVENT_TRACK_SKIP, false, track_skip_callback); |
1208 | #endif | 1213 | #endif |