mirror of https://github.com/mpv-player/mpv
vf_vavpp: disable this filter
Might be unreasonable, but I'm angry at the shit driver freezing my machine.
This commit is contained in:
parent
a416b3f084
commit
6385a5fd1b
|
@ -54,6 +54,7 @@ struct opts {
|
|||
int deint_type;
|
||||
int interlaced_only;
|
||||
int reversal_bug;
|
||||
int force;
|
||||
};
|
||||
|
||||
struct priv {
|
||||
|
@ -448,6 +449,13 @@ static struct mp_filter *vf_vavpp_create(struct mp_filter *parent, void *options
|
|||
|
||||
p->queue = mp_refqueue_alloc(f);
|
||||
|
||||
if (!p->opts->force) {
|
||||
MP_ERR(f, "This filter is disabled because it is known to cause GPU "
|
||||
"lockups. This is a driver bug. You can override this by "
|
||||
"passing force=yes as filter argument.\n");
|
||||
goto error;
|
||||
}
|
||||
|
||||
p->av_device_ref = mp_filter_load_hwdec_device(f, AV_HWDEVICE_TYPE_VAAPI);
|
||||
if (!p->av_device_ref)
|
||||
goto error;
|
||||
|
@ -482,6 +490,7 @@ static const m_option_t vf_opts_fields[] = {
|
|||
{"motion-compensated", 5})),
|
||||
OPT_FLAG("interlaced-only", interlaced_only, 0),
|
||||
OPT_FLAG("reversal-bug", reversal_bug, 0),
|
||||
OPT_FLAG("force", force, 0),
|
||||
{0}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue