diff options
Diffstat (limited to 'apps/plugins/mpegplayer/mpegplayer.c')
-rw-r--r-- | apps/plugins/mpegplayer/mpegplayer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index 055c1b2b84..e9e742a6a5 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c @@ -1459,9 +1459,11 @@ static void button_loop(void) rb->lcd_clear_display(); rb->lcd_update(); +#if defined(HAVE_LCD_MODES) #if (HAVE_LCD_MODES & LCD_MODE_YUV) rb->lcd_set_mode(LCD_MODE_YUV); #endif +#endif wvs_init(); @@ -1541,9 +1543,11 @@ static void button_loop(void) stream_show_vo(false); wvs_backlight_brightness_video_mode(false); +#if defined(HAVE_LCD_MODES) #if (HAVE_LCD_MODES & LCD_MODE_YUV) rb->lcd_set_mode(LCD_MODE_RGB565); #endif +#endif result = mpeg_menu(0); @@ -1557,9 +1561,11 @@ static void button_loop(void) break; default: +#if defined(HAVE_LCD_MODES) #if (HAVE_LCD_MODES & LCD_MODE_YUV) rb->lcd_set_mode(LCD_MODE_YUV); #endif +#endif /* If not stopped, show video again */ if (state != STREAM_STOPPED) { wvs_show(WVS_SHOW); @@ -1719,9 +1725,11 @@ enum plugin_status plugin_start(const void* parameter) } } +#if defined(HAVE_LCD_MODES) #if (HAVE_LCD_MODES & LCD_MODE_YUV) rb->lcd_set_mode(LCD_MODE_RGB565); #endif +#endif stream_exit(); |