summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/mpegplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mpegplayer/mpegplayer.c')
-rw-r--r--apps/plugins/mpegplayer/mpegplayer.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c
index 82ebfb1111..055c1b2b84 100644
--- a/apps/plugins/mpegplayer/mpegplayer.c
+++ b/apps/plugins/mpegplayer/mpegplayer.c
@@ -1459,6 +1459,10 @@ static void button_loop(void)
1459 rb->lcd_clear_display(); 1459 rb->lcd_clear_display();
1460 rb->lcd_update(); 1460 rb->lcd_update();
1461 1461
1462#if (HAVE_LCD_MODES & LCD_MODE_YUV)
1463 rb->lcd_set_mode(LCD_MODE_YUV);
1464#endif
1465
1462 wvs_init(); 1466 wvs_init();
1463 1467
1464 /* Start playback at the specified starting time */ 1468 /* Start playback at the specified starting time */
@@ -1537,6 +1541,10 @@ static void button_loop(void)
1537 stream_show_vo(false); 1541 stream_show_vo(false);
1538 wvs_backlight_brightness_video_mode(false); 1542 wvs_backlight_brightness_video_mode(false);
1539 1543
1544#if (HAVE_LCD_MODES & LCD_MODE_YUV)
1545 rb->lcd_set_mode(LCD_MODE_RGB565);
1546#endif
1547
1540 result = mpeg_menu(0); 1548 result = mpeg_menu(0);
1541 1549
1542 /* The menu can change the font, so restore */ 1550 /* The menu can change the font, so restore */
@@ -1549,6 +1557,9 @@ static void button_loop(void)
1549 break; 1557 break;
1550 1558
1551 default: 1559 default:
1560#if (HAVE_LCD_MODES & LCD_MODE_YUV)
1561 rb->lcd_set_mode(LCD_MODE_YUV);
1562#endif
1552 /* If not stopped, show video again */ 1563 /* If not stopped, show video again */
1553 if (state != STREAM_STOPPED) { 1564 if (state != STREAM_STOPPED) {
1554 wvs_show(WVS_SHOW); 1565 wvs_show(WVS_SHOW);
@@ -1707,6 +1718,10 @@ enum plugin_status plugin_start(const void* parameter)
1707 rb->splashf(HZ*2, errstring, err); 1718 rb->splashf(HZ*2, errstring, err);
1708 } 1719 }
1709 } 1720 }
1721
1722#if (HAVE_LCD_MODES & LCD_MODE_YUV)
1723 rb->lcd_set_mode(LCD_MODE_RGB565);
1724#endif
1710 1725
1711 stream_exit(); 1726 stream_exit();
1712 1727