diff options
author | wm4 <wm4@nowhere> | 2016-01-25 19:40:35 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-25 19:40:35 +0100 |
commit | eaf2eebb50fbd7b49b12e0d08ce630e675ea414d (patch) | |
tree | aca1ff24e3465191c1d1501263acc6d3f3bca2b2 /video/out/opengl/hwdec_vdpau.c | |
parent | a16040528459844d304d39c7d567ced86565ae06 (diff) | |
download | mpv-eaf2eebb50fbd7b49b12e0d08ce630e675ea414d.tar.bz2 mpv-eaf2eebb50fbd7b49b12e0d08ce630e675ea414d.tar.xz |
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.
Diffstat (limited to 'video/out/opengl/hwdec_vdpau.c')
-rw-r--r-- | video/out/opengl/hwdec_vdpau.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |