diff options
author | wm4 <wm4@nowhere> | 2016-05-04 16:55:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-05-04 16:55:26 +0200 |
commit | 833375f88d0392cac49b30ee3a4704fbab58e814 (patch) | |
tree | 225c7d03869f633524d80c0eba3ecd698c1c1d63 /video/out/opengl/hwdec.c | |
parent | 86b5f1463c9084d83fbfb60bcd15bdb67795bb25 (diff) | |
download | mpv-833375f88d0392cac49b30ee3a4704fbab58e814.tar.bz2 mpv-833375f88d0392cac49b30ee3a4704fbab58e814.tar.xz |
command: change some hwdec properties
Introduce hwdec-current and hwdec-interop properties.
Deprecate hwdec-detected, which never made a lot of sense, and which is
replaced by the new properties. hwdec-active also becomes useless, as
hwdec-current is a superset, so it's deprecated too (for now).
Diffstat (limited to 'video/out/opengl/hwdec.c')
-rw-r--r-- | video/out/opengl/hwdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/hwdec.c b/video/out/opengl/hwdec.c index 02aa0c2cd2..9c3bec1a0f 100644 --- a/video/out/opengl/hwdec.c +++ b/video/out/opengl/hwdec.c @@ -79,6 +79,8 @@ static struct gl_hwdec *load_hwdec_driver(struct mp_log *log, GL *gl, mp_verbose(log, "Loading failed.\n"); return NULL; } + if (hwdec->hwctx && !hwdec->hwctx->driver_name) + hwdec->hwctx->driver_name = hwdec->driver->name; return hwdec; } |