diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2018-10-09 22:29:28 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2018-10-09 22:35:37 -0400 |
commit | d2cef81bba743cc7ee209bddf81f1c1e97387250 (patch) | |
tree | db853303dfaca22e300f28f888d7a7a91f88f2c1 /apps/plugins/mpegplayer/video_out_rockbox.c | |
parent | 53d72a8be1932a91e138920885a9e36c752460e0 (diff) | |
download | rockbox-d2cef81bba743cc7ee209bddf81f1c1e97387250.tar.gz rockbox-d2cef81bba743cc7ee209bddf81f1c1e97387250.zip |
mips: fix some compile warnings.
Change-Id: Ia5e83702313c1c184480290d3b0e6a66f01b7277
Diffstat (limited to 'apps/plugins/mpegplayer/video_out_rockbox.c')
-rw-r--r-- | apps/plugins/mpegplayer/video_out_rockbox.c | 6 |
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 c659600d41..b05a229083 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) | |||
371 | uint8_t *yuv[3]; | 371 | uint8_t *yuv[3]; |
372 | struct vo_rect thumb_rc; | 372 | struct vo_rect thumb_rc; |
373 | int thumb_width, thumb_height; | 373 | int thumb_width, thumb_height; |
374 | #ifdef HAVE_LCD_COLOR | ||
374 | int thumb_uv_width, thumb_uv_height; | 375 | int thumb_uv_width, thumb_uv_height; |
376 | #endif | ||
375 | 377 | ||
376 | /* Obtain rectangle as clipped to the screen */ | 378 | /* Obtain rectangle as clipped to the screen */ |
377 | vo_rect_set_ext(&thumb_rc, 0, 0, LCD_WIDTH, LCD_HEIGHT); | 379 | 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) | |||
386 | 388 | ||
387 | thumb_width = rc->r - rc->l; | 389 | thumb_width = rc->r - rc->l; |
388 | thumb_height = rc->b - rc->t; | 390 | thumb_height = rc->b - rc->t; |
391 | #ifdef HAVE_LCD_COLOR | ||
389 | thumb_uv_width = thumb_width / 2; | 392 | thumb_uv_width = thumb_width / 2; |
390 | thumb_uv_height = thumb_height / 2; | 393 | thumb_uv_height = thumb_height / 2; |
391 | 394 | ||
392 | DEBUGF("thumb: w: %d h: %d uvw: %d uvh: %d\n", thumb_width, | 395 | DEBUGF("thumb: w: %d h: %d uvw: %d uvh: %d\n", thumb_width, |
393 | thumb_height, thumb_uv_width, thumb_uv_height); | 396 | thumb_height, thumb_uv_width, thumb_uv_height); |
397 | #else | ||
398 | DEBUGF("thumb: w: %d h: %d\n", thumb_width, thumb_height); | ||
399 | #endif | ||
394 | 400 | ||
395 | /* Use remaining mpeg2 buffer as temp space */ | 401 | /* Use remaining mpeg2 buffer as temp space */ |
396 | mem = mpeg2_get_buf(&bufsize); | 402 | mem = mpeg2_get_buf(&bufsize); |