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.
This commit is contained in:
wm4 2016-01-25 19:40:35 +01:00
parent a160405284
commit eaf2eebb50
1 changed files with 1 additions and 1 deletions

View File

@ -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);