summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2004-04-15 06:12:02 +0000
committerHardeep Sidhu <dyp@pobox.com>2004-04-15 06:12:02 +0000
commit1b44632aa0bed84b313a35f815e2c3fd60bb830a (patch)
tree09ab1bf3facb52ced188ccf1c1dbfed4b74ec85a /apps
parent4d3aa154c647d8da78bf904756d1632c973bdbd6 (diff)
downloadrockbox-1b44632aa0bed84b313a35f815e2c3fd60bb830a.tar.gz
rockbox-1b44632aa0bed84b313a35f815e2c3fd60bb830a.tar.bz2
rockbox-1b44632aa0bed84b313a35f815e2c3fd60bb830a.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist_viewer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c
index d7c34e4300..71059aa593 100644
--- a/apps/playlist_viewer.c
+++ b/apps/playlist_viewer.c
@@ -848,9 +848,6 @@ bool playlist_viewer_ex(char* filename)
{
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))
{
/* Play has stopped */
@@ -899,7 +896,7 @@ bool playlist_viewer_ex(char* filename)
/* Playlist has changed (new track started?) */
update_first_index();
if (!update_playlist(false))
- exit = true;
+ goto exit;
else
update = true;
@@ -907,6 +904,9 @@ bool playlist_viewer_ex(char* filename)
viewer.move_track = -1;
}
+ /* Timeout so we can determine if play status has changed */
+ button = button_get_w_tmo(HZ/2);
+
switch (button)
{
#ifdef HAVE_RECORDER_KEYPAD