summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-10-09 22:29:28 -0400
committerSolomon Peachy <pizza@shaftnet.org>2018-10-09 22:35:37 -0400
commitd2cef81bba743cc7ee209bddf81f1c1e97387250 (patch)
treedb853303dfaca22e300f28f888d7a7a91f88f2c1 /apps/plugins/mpegplayer
parent53d72a8be1932a91e138920885a9e36c752460e0 (diff)
downloadrockbox-d2cef81bba743cc7ee209bddf81f1c1e97387250.zip
rockbox-d2cef81bba743cc7ee209bddf81f1c1e97387250.tar.gz
rockbox-d2cef81bba743cc7ee209bddf81f1c1e97387250.tar.bz2
rockbox-d2cef81bba743cc7ee209bddf81f1c1e97387250.tar.xz
mips: fix some compile warnings.
Change-Id: Ia5e83702313c1c184480290d3b0e6a66f01b7277
Diffstat (limited to 'apps/plugins/mpegplayer')
-rw-r--r--apps/plugins/mpegplayer/video_out_rockbox.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/video_out_rockbox.c b/apps/plugins/mpegplayer/video_out_rockbox.c
index c659600..b05a229 100644
--- a/apps/plugins/mpegplayer/video_out_rockbox.c
+++ b/apps/plugins/mpegplayer/video_out_rockbox.c
@@ -371,7 +371,9 @@ bool vo_draw_frame_thumb(uint8_t * const * buf, const struct vo_rect *rc)
uint8_t *yuv[3];
struct vo_rect thumb_rc;
int thumb_width, thumb_height;
+#ifdef HAVE_LCD_COLOR
int thumb_uv_width, thumb_uv_height;
+#endif
/* Obtain rectangle as clipped to the screen */
vo_rect_set_ext(&thumb_rc, 0, 0, LCD_WIDTH, LCD_HEIGHT);
@@ -386,11 +388,15 @@ bool vo_draw_frame_thumb(uint8_t * const * buf, const struct vo_rect *rc)
thumb_width = rc->r - rc->l;
thumb_height = rc->b - rc->t;
+#ifdef HAVE_LCD_COLOR
thumb_uv_width = thumb_width / 2;
thumb_uv_height = thumb_height / 2;
DEBUGF("thumb: w: %d h: %d uvw: %d uvh: %d\n", thumb_width,
thumb_height, thumb_uv_width, thumb_uv_height);
+#else
+ DEBUGF("thumb: w: %d h: %d\n", thumb_width, thumb_height);
+#endif
/* Use remaining mpeg2 buffer as temp space */
mem = mpeg2_get_buf(&bufsize);