From 6385a5fd1b8a67c051b82d48c993a6591e8f93c6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 15 Sep 2019 17:59:25 +0200 Subject: vf_vavpp: disable this filter Might be unreasonable, but I'm angry at the shit driver freezing my machine. --- video/filter/vf_vavpp.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'video') diff --git a/video/filter/vf_vavpp.c b/video/filter/vf_vavpp.c index 8c41ba8734..02bf783123 100644 --- a/video/filter/vf_vavpp.c +++ b/video/filter/vf_vavpp.c @@ -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} }; -- cgit v1.2.3