From 917650fefaa34b94a3784c2944c45b5d7131f229 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 19 Mar 2014 19:35:25 +0100 Subject: vdpau: fix decoder init return value --- video/decode/vdpau.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/video/decode/vdpau.c b/video/decode/vdpau.c index 80ce21ffa3..46b6295030 100644 --- a/video/decode/vdpau.c +++ b/video/decode/vdpau.c @@ -95,7 +95,7 @@ static int init_decoder(struct lavc_ctx *ctx, int fmt, int w, int h) VdpStatus vdp_st; if (handle_preemption(ctx) < 0) - return false; + return -1; if (p->context.decoder != VDP_INVALID_HANDLE) vdp->decoder_destroy(p->context.decoder); @@ -129,11 +129,11 @@ static int init_decoder(struct lavc_ctx *ctx, int fmt, int w, int h) CHECK_VDP_WARNING(p, "Failed creating VDPAU decoder"); if (vdp_st != VDP_STATUS_OK) goto fail; - return true; + return 0; fail: p->context.decoder = VDP_INVALID_HANDLE; - return false; + return -1; } static struct mp_image *allocate_image(struct lavc_ctx *ctx, int fmt, -- cgit v1.2.3