From 8714b75d2b4b4067370f1ea9520e0c48e7bfa63e Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Mon, 15 Oct 2007 19:29:33 +0000 Subject: Delay boosting and backlight on until after the menu selection is done. Fixes FS #7964. There remains an issue with the movie being loaded before the menu is shown. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15123 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/mpegplayer/mpegplayer.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index ee0dfcf494..ea10411f3f 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c @@ -2299,18 +2299,6 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) rb->lcd_clear_display(); rb->lcd_update(); - /* Turn off backlight timeout */ - backlight_force_on(rb); /* backlight control in lib/helper.c */ - rb->talk_disable_menus(); - -#ifdef HAVE_ADJUSTABLE_CPU_FREQ - rb->cpu_boost(true); -#endif - - /* From this point on we've altered settings, colors, cpu_boost, etc. and - cannot just return PLUGIN_ERROR - instead drop though to cleanup code - */ - init_settings((char*)parameter); /* Initialise libmad */ @@ -2332,6 +2320,18 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) start_time = 0; else if ( start_time > (end_pts_time-start_pts_time) ) start_time = (end_pts_time-start_pts_time); + + /* Turn off backlight timeout */ + backlight_force_on(rb); /* backlight control in lib/helper.c */ + rb->talk_disable_menus(); + +#ifdef HAVE_ADJUSTABLE_CPU_FREQ + rb->cpu_boost(true); +#endif + + /* From this point on we've altered settings, colors, cpu_boost, etc. and + cannot just return PLUGIN_ERROR - instead drop though to cleanup code + */ rb->splash(0, "Loading..."); -- cgit v1.2.3