From 1b44632aa0bed84b313a35f815e2c3fd60bb830a Mon Sep 17 00:00:00 2001 From: Hardeep Sidhu Date: Thu, 15 Apr 2004 06:12:02 +0000 Subject: [PATCH] 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 --- apps/playlist_viewer.c | 8 ++++---- 1 file 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