[MPlayer-cvslog] r29026 - trunk/libvo/vo_vdpau.c
cehoyos
subversion at mplayerhq.hu
Sat Mar 21 20:59:36 CET 2009
Author: cehoyos
Date: Sat Mar 21 20:59:35 2009
New Revision: 29026
Log:
Change return value for create_vdp_decoder().
Modified:
trunk/libvo/vo_vdpau.c
Modified: trunk/libvo/vo_vdpau.c
==============================================================================
--- trunk/libvo/vo_vdpau.c Sat Mar 21 20:46:13 2009 (r29025)
+++ trunk/libvo/vo_vdpau.c Sat Mar 21 20:59:35 2009 (r29026)
@@ -509,10 +509,10 @@ static int create_vdp_decoder(int max_re
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[],
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);
More information about the MPlayer-cvslog
mailing list