diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-08-16 23:01:18 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-08-16 23:01:18 +0000 |
commit | 767c0ec5894f1acaad5e0def12d628c6f21bcf87 (patch) | |
tree | a2fbd9ac23adc395d4587a6c9cb85ba4cc001cb8 /apps/plugins/video.c | |
parent | 735ab889d2bd41fdc8a5bf22d7ce5ed724d58474 (diff) | |
download | rockbox-767c0ec5894f1acaad5e0def12d628c6f21bcf87.tar.gz rockbox-767c0ec5894f1acaad5e0def12d628c6f21bcf87.zip |
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
Diffstat (limited to 'apps/plugins/video.c')
-rw-r--r-- | apps/plugins/video.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
561 | rb->mp3_play_stop(); /* stop audio ISR */ | 561 | rb->mp3_play_stop(); /* stop audio ISR */ |
562 | 562 | ||
563 | /* Turn on backlight timeout (revert to settings) */ | 563 | /* Turn on backlight timeout (revert to settings) */ |
564 | backlight_use_settings(); /* backlight control in lib/helper.c */ | 564 | backlight_use_settings(rb); /* backlight control in lib/helper.c */ |
565 | 565 | ||
566 | /* restore normal contrast */ | 566 | /* restore normal contrast */ |
567 | rb->lcd_set_contrast(rb->global_settings->contrast); | 567 | rb->lcd_set_contrast(rb->global_settings->contrast); |
@@ -926,7 +926,7 @@ int main(char* filename) | |||
926 | { | 926 | { |
927 | gPlay.bHasVideo = true; | 927 | gPlay.bHasVideo = true; |
928 | /* Turn off backlight timeout */ | 928 | /* Turn off backlight timeout */ |
929 | backlight_force_on(); /* backlight control in lib/helper.c */ | 929 | backlight_force_on(rb); /* backlight control in lib/helper.c */ |
930 | } | 930 | } |
931 | 931 | ||
932 | /* prepare audio playback, if contained */ | 932 | /* prepare audio playback, if contained */ |