mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 20:03:10 +02:00
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:
parent
a160405284
commit
eaf2eebb50
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user