summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-19 19:35:25 +0100
committerwm4 <wm4@nowhere>2014-03-19 19:35:25 +0100
commit917650fefaa34b94a3784c2944c45b5d7131f229 (patch)
treef3707b32265d03fc003cfc21c176fe61115e803a
parent19f101db680f966a6e56035a16784541be390982 (diff)
downloadmpv-917650fefaa34b94a3784c2944c45b5d7131f229.tar.bz2
mpv-917650fefaa34b94a3784c2944c45b5d7131f229.tar.xz
vdpau: fix decoder init return value
-rw-r--r--video/decode/vdpau.c6
1 files 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,