Mercurial > mplayer.hg
changeset 28991:8cf16b1d8dde
Change return value for create_vdp_decoder().
author | cehoyos |
---|---|
date | Sat, 21 Mar 2009 19:59:35 +0000 |
parents | e2552a27678c |
children | 947ef23ba798 |
files | libvo/vo_vdpau.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_vdpau.c Sat Mar 21 19:46:13 2009 +0000 +++ b/libvo/vo_vdpau.c Sat Mar 21 19:59:35 2009 +0000 @@ -509,10 +509,10 @@ 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 @@ 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);