From eaf2eebb50fbd7b49b12e0d08ce630e675ea414d Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 25 Jan 2016 19:40:35 +0100 Subject: vo_opengl: vdpau: better handling of preemption recovery If recovery from preemption is done successfully, continue normally. Only fail if it's preempted during init. --- video/out/opengl/hwdec_vdpau.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/opengl/hwdec_vdpau.c b/video/out/opengl/hwdec_vdpau.c index 13e4995fc1..f6f9367980 100644 --- a/video/out/opengl/hwdec_vdpau.c +++ b/video/out/opengl/hwdec_vdpau.c @@ -137,7 +137,7 @@ static int reinit(struct gl_hwdec *hw, struct mp_image_params *params) assert(params->imgfmt == hw->driver->imgfmt); p->image_params = *params; - if (mp_vdpau_handle_preemption(p->ctx, &p->preemption_counter) < 1) + if (mp_vdpau_handle_preemption(p->ctx, &p->preemption_counter) < 0) return -1; gl->VDPAUInitNV(BRAINDEATH(p->ctx->vdp_device), p->ctx->get_proc_address); -- cgit v1.2.3