summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-05-28 11:44:06 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-05-28 11:44:06 +0000
commit4a4d5fcf4e23d4989e94360daabb98517e91cfc5 (patch)
tree67fafb6ee1b66beb531aaf8306a031b21c302b69 /apps
parentff469ab5733133bfaf8b1c1925be8bdefdb6212c (diff)
downloadrockbox-4a4d5fcf4e23d4989e94360daabb98517e91cfc5.tar.gz
rockbox-4a4d5fcf4e23d4989e94360daabb98517e91cfc5.tar.bz2
rockbox-4a4d5fcf4e23d4989e94360daabb98517e91cfc5.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/mpegplayer/mpegplayer.c6
1 files changed, 6 insertions, 0 deletions
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);
}