summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-09-15 17:59:25 +0200
committerwm4 <wm4@nowhere>2019-09-15 17:59:25 +0200
commit6385a5fd1b8a67c051b82d48c993a6591e8f93c6 (patch)
tree920ac83987d9138640ca7b78c417b90002e8f236
parenta416b3f084350fae94049f60ef94f2af10a05f95 (diff)
downloadmpv-6385a5fd1b8a67c051b82d48c993a6591e8f93c6.tar.bz2
mpv-6385a5fd1b8a67c051b82d48c993a6591e8f93c6.tar.xz
vf_vavpp: disable this filter
Might be unreasonable, but I'm angry at the shit driver freezing my machine.
-rw-r--r--video/filter/vf_vavpp.c9
1 files changed, 9 insertions, 0 deletions
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}
};