Handle button events immediately. Fixes problem with USB screen not coming up in viewer.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4505 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Hardeep Sidhu 2004-04-15 06:12:02 +00:00
parent 4d3aa154c6
commit 1b44632aa0

View file

@ -848,9 +848,6 @@ bool playlist_viewer_ex(char* filename)
{ {
int track; int track;
/* Timeout so we can determine if play status has changed */
button = button_get_w_tmo(HZ/2);
if (!viewer.playlist && !(mpeg_status() & MPEG_STATUS_PLAY)) if (!viewer.playlist && !(mpeg_status() & MPEG_STATUS_PLAY))
{ {
/* Play has stopped */ /* Play has stopped */
@ -899,7 +896,7 @@ bool playlist_viewer_ex(char* filename)
/* Playlist has changed (new track started?) */ /* Playlist has changed (new track started?) */
update_first_index(); update_first_index();
if (!update_playlist(false)) if (!update_playlist(false))
exit = true; goto exit;
else else
update = true; update = true;
@ -907,6 +904,9 @@ bool playlist_viewer_ex(char* filename)
viewer.move_track = -1; viewer.move_track = -1;
} }
/* Timeout so we can determine if play status has changed */
button = button_get_w_tmo(HZ/2);
switch (button) switch (button)
{ {
#ifdef HAVE_RECORDER_KEYPAD #ifdef HAVE_RECORDER_KEYPAD