From 4a4d5fcf4e23d4989e94360daabb98517e91cfc5 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 28 May 2008 11:44:06 +0000 Subject: [PATCH] Oops. Have to explicitly remove the lcd enable notify before exiting or it will crash later for sure if another plugin is loaded. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17644 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/mpegplayer/mpegplayer.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index 42e0ddd5ad..6d6aa2078f 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c @@ -1598,6 +1598,12 @@ static void button_loop(void) wvs_stop(); +#ifdef HAVE_LCD_ENABLE + /* Be sure hook is removed before exiting since the stop will put it + * back because of the backlight restore. */ + rb->lcd_set_enable_hook(NULL); +#endif + rb->lcd_setfont(FONT_UI); }