aboutsummaryrefslogtreecommitdiffhomepage
path: root/libvo
diff options
context:
space:
mode:
authorGravatar cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-21 19:59:35 +0000
committerGravatar cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-21 19:59:35 +0000
commit9f47d4d37c975659440ae91c175d8d4bbf7fbe54 (patch)
treea20f832d202508aca27d482073904e0803450ec9 /libvo
parentf8a56efb5ce7b238a2557618984c4ce5f88fc936 (diff)
Change return value for create_vdp_decoder().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29026 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vdpau.c6
1 files 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);