diff options
author | Steve Bavin <pondlife@pondlife.me> | 2007-10-03 16:17:36 +0000 |
---|---|---|
committer | Steve Bavin <pondlife@pondlife.me> | 2007-10-03 16:17:36 +0000 |
commit | 5a78a06073a9c2b9803af89a57ca129990c873d3 (patch) | |
tree | 0eb6a8c61a88985f0176c62906d2af2cab5ef8d1 /apps/plugins/mpegplayer | |
parent | 3dd25e85590f14a94d455e2e715c8df4766499f3 (diff) |
Just temporarily disable talk menus, in case the player is reset whilst in mpegplayer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14970 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer')
-rw-r--r-- | apps/plugins/mpegplayer/mpegplayer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index c3e119aab1..8b15ff03ce 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c @@ -1780,7 +1780,6 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) long graysize; int grayscales; #endif - bool talk_menu; if (parameter == NULL) { @@ -1872,8 +1871,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) /* Turn off backlight timeout */ backlight_force_on(rb); /* backlight control in lib/helper.c */ - talk_menu = rb->global_settings->talk_menu; - rb->global_settings->talk_menu = false; + rb->talk_disable_menus(); #ifdef HAVE_ADJUSTABLE_CPU_FREQ rb->cpu_boost(true); @@ -2014,7 +2012,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) /* Turn on backlight timeout (revert to settings) */ backlight_use_settings(rb); /* backlight control in lib/helper.c */ - rb->global_settings->talk_menu = talk_menu; + rb->talk_enable_menus(); return status; } |