diff options
Diffstat (limited to 'apps/plugins/mpegplayer/mpegplayer.c')
-rw-r--r-- | apps/plugins/mpegplayer/mpegplayer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index eed1fab6d7..5c06fe257d 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c | |||
@@ -1204,8 +1204,10 @@ static void osd_lcd_enable_hook(unsigned short id, void* param) | |||
1204 | static void osdbacklight_hw_on_video_mode(bool video_on) | 1204 | static void osdbacklight_hw_on_video_mode(bool video_on) |
1205 | { | 1205 | { |
1206 | if (video_on) { | 1206 | if (video_on) { |
1207 | #ifdef HAVE_BACKLIGHT | ||
1207 | /* Turn off backlight timeout */ | 1208 | /* Turn off backlight timeout */ |
1208 | backlight_ignore_timeout(); | 1209 | backlight_ignore_timeout(); |
1210 | #endif | ||
1209 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | 1211 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) |
1210 | rb->remove_event(LCD_EVENT_ACTIVATION, osd_lcd_enable_hook); | 1212 | rb->remove_event(LCD_EVENT_ACTIVATION, osd_lcd_enable_hook); |
1211 | #endif | 1213 | #endif |
@@ -1213,8 +1215,10 @@ static void osdbacklight_hw_on_video_mode(bool video_on) | |||
1213 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | 1215 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) |
1214 | rb->add_event(LCD_EVENT_ACTIVATION, osd_lcd_enable_hook); | 1216 | rb->add_event(LCD_EVENT_ACTIVATION, osd_lcd_enable_hook); |
1215 | #endif | 1217 | #endif |
1218 | #ifdef HAVE_BACKLIGHT | ||
1216 | /* Revert to user's backlight settings */ | 1219 | /* Revert to user's backlight settings */ |
1217 | backlight_use_settings(); | 1220 | backlight_use_settings(); |
1221 | #endif | ||
1218 | } | 1222 | } |
1219 | } | 1223 | } |
1220 | 1224 | ||