diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-04-01 05:34:48 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-04-01 05:34:48 +0000 |
commit | e64b87ddb506d5248d36735280635e1ef8870ce0 (patch) | |
tree | 38d219e23f6289d316c55420cc0146f4e0fb3c84 | |
parent | 8580674b10072b43531660652ff8103c6a980157 (diff) | |
download | rockbox-e64b87ddb506d5248d36735280635e1ef8870ce0.tar.gz rockbox-e64b87ddb506d5248d36735280635e1ef8870ce0.zip |
Fix warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20601 a1c6a512-1295-4272-9138-f99709370657
-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) | |||
1459 | rb->lcd_clear_display(); | 1459 | rb->lcd_clear_display(); |
1460 | rb->lcd_update(); | 1460 | rb->lcd_update(); |
1461 | 1461 | ||
1462 | #if defined(HAVE_LCD_MODES) | ||
1462 | #if (HAVE_LCD_MODES & LCD_MODE_YUV) | 1463 | #if (HAVE_LCD_MODES & LCD_MODE_YUV) |
1463 | rb->lcd_set_mode(LCD_MODE_YUV); | 1464 | rb->lcd_set_mode(LCD_MODE_YUV); |
1464 | #endif | 1465 | #endif |
1466 | #endif | ||
1465 | 1467 | ||
1466 | wvs_init(); | 1468 | wvs_init(); |
1467 | 1469 | ||
@@ -1541,9 +1543,11 @@ static void button_loop(void) | |||
1541 | stream_show_vo(false); | 1543 | stream_show_vo(false); |
1542 | wvs_backlight_brightness_video_mode(false); | 1544 | wvs_backlight_brightness_video_mode(false); |
1543 | 1545 | ||
1546 | #if defined(HAVE_LCD_MODES) | ||
1544 | #if (HAVE_LCD_MODES & LCD_MODE_YUV) | 1547 | #if (HAVE_LCD_MODES & LCD_MODE_YUV) |
1545 | rb->lcd_set_mode(LCD_MODE_RGB565); | 1548 | rb->lcd_set_mode(LCD_MODE_RGB565); |
1546 | #endif | 1549 | #endif |
1550 | #endif | ||
1547 | 1551 | ||
1548 | result = mpeg_menu(0); | 1552 | result = mpeg_menu(0); |
1549 | 1553 | ||
@@ -1557,9 +1561,11 @@ static void button_loop(void) | |||
1557 | break; | 1561 | break; |
1558 | 1562 | ||
1559 | default: | 1563 | default: |
1564 | #if defined(HAVE_LCD_MODES) | ||
1560 | #if (HAVE_LCD_MODES & LCD_MODE_YUV) | 1565 | #if (HAVE_LCD_MODES & LCD_MODE_YUV) |
1561 | rb->lcd_set_mode(LCD_MODE_YUV); | 1566 | rb->lcd_set_mode(LCD_MODE_YUV); |
1562 | #endif | 1567 | #endif |
1568 | #endif | ||
1563 | /* If not stopped, show video again */ | 1569 | /* If not stopped, show video again */ |
1564 | if (state != STREAM_STOPPED) { | 1570 | if (state != STREAM_STOPPED) { |
1565 | wvs_show(WVS_SHOW); | 1571 | wvs_show(WVS_SHOW); |
@@ -1719,9 +1725,11 @@ enum plugin_status plugin_start(const void* parameter) | |||
1719 | } | 1725 | } |
1720 | } | 1726 | } |
1721 | 1727 | ||
1728 | #if defined(HAVE_LCD_MODES) | ||
1722 | #if (HAVE_LCD_MODES & LCD_MODE_YUV) | 1729 | #if (HAVE_LCD_MODES & LCD_MODE_YUV) |
1723 | rb->lcd_set_mode(LCD_MODE_RGB565); | 1730 | rb->lcd_set_mode(LCD_MODE_RGB565); |
1724 | #endif | 1731 | #endif |
1732 | #endif | ||
1725 | 1733 | ||
1726 | stream_exit(); | 1734 | stream_exit(); |
1727 | 1735 | ||