summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/mpegplayer.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-10-15 19:29:33 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-10-15 19:29:33 +0000
commit8714b75d2b4b4067370f1ea9520e0c48e7bfa63e (patch)
treec7fa85a48c4898716dad2fe101d73d55967f1414 /apps/plugins/mpegplayer/mpegplayer.c
parent3a5509a8d7829d731dd2c20a44588b8c15b2a540 (diff)
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
Diffstat (limited to 'apps/plugins/mpegplayer/mpegplayer.c')
-rw-r--r--apps/plugins/mpegplayer/mpegplayer.c24
1 files changed, 12 insertions, 12 deletions
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...");