From 767c0ec5894f1acaad5e0def12d628c6f21bcf87 Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Thu, 16 Aug 2007 23:01:18 +0000 Subject: Pass plugin api pointer to funtion directly, fixes crashes when doing incremental builds. Fix incorrect backlight changes in rockblox introduced recently. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14373 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/video.c') diff --git a/apps/plugins/video.c b/apps/plugins/video.c index 5ebe8dc2e6..2799e3d5d1 100644 --- a/apps/plugins/video.c +++ b/apps/plugins/video.c @@ -561,7 +561,7 @@ void Cleanup(void *fd) rb->mp3_play_stop(); /* stop audio ISR */ /* Turn on backlight timeout (revert to settings) */ - backlight_use_settings(); /* backlight control in lib/helper.c */ + backlight_use_settings(rb); /* backlight control in lib/helper.c */ /* restore normal contrast */ rb->lcd_set_contrast(rb->global_settings->contrast); @@ -926,7 +926,7 @@ int main(char* filename) { gPlay.bHasVideo = true; /* Turn off backlight timeout */ - backlight_force_on(); /* backlight control in lib/helper.c */ + backlight_force_on(rb); /* backlight control in lib/helper.c */ } /* prepare audio playback, if contained */ -- cgit v1.2.3