From 9f47d4d37c975659440ae91c175d8d4bbf7fbe54 Mon Sep 17 00:00:00 2001 From: cehoyos Date: Sat, 21 Mar 2009 19:59:35 +0000 Subject: Change return value for create_vdp_decoder(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29026 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_vdpau.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c index 0caf27521d..a97c00f7d2 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -509,10 +509,10 @@ static int create_vdp_decoder(int max_refs) if (vdp_st != VDP_STATUS_OK) { decoder = VDP_INVALID_HANDLE; decoder_max_refs = 0; - return -1; + return 0; } decoder_max_refs = max_refs; - return 0; + return 1; } /* @@ -828,7 +828,7 @@ static int draw_slice(uint8_t *image[], int stride[], int w, int h, if (!IMGFMT_IS_VDPAU(image_format)) return VO_FALSE; if ((decoder == VDP_INVALID_HANDLE || decoder_max_refs < max_refs) - && create_vdp_decoder(max_refs) < 0) + && !create_vdp_decoder(max_refs)) return VO_FALSE; vdp_st = vdp_decoder_render(decoder, rndr->surface, (void *)&rndr->info, rndr->bitstream_buffers_used, rndr->bitstream_buffers); -- cgit v1.2.3