summaryrefslogtreecommitdiff
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
parentff469ab5733133bfaf8b1c1925be8bdefdb6212c (diff)
downloadrockbox-4a4d5fcf4e23d4989e94360daabb98517e91cfc5.tar.gz
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
-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)
1598 1598
1599 wvs_stop(); 1599 wvs_stop();
1600 1600
1601#ifdef HAVE_LCD_ENABLE
1602 /* Be sure hook is removed before exiting since the stop will put it
1603 * back because of the backlight restore. */
1604 rb->lcd_set_enable_hook(NULL);
1605#endif
1606
1601 rb->lcd_setfont(FONT_UI); 1607 rb->lcd_setfont(FONT_UI);
1602} 1608}
1603 1609