diff options
author | wm4 <wm4@nowhere> | 2017-12-10 23:54:32 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2017-12-11 20:44:59 +0200 |
commit | 5196c34aecd55a705e3f978b47ddb7f1c1329d58 (patch) | |
tree | cc77863455c121480b287605a890eaf316f7fb0e /video/out/gpu | |
parent | a4705e8b59a0c496852d67db591bb480e0146e5e (diff) | |
download | mpv-5196c34aecd55a705e3f978b47ddb7f1c1329d58.tar.bz2 mpv-5196c34aecd55a705e3f978b47ddb7f1c1329d58.tar.xz |
video: properly initialize and set hwdec_interop
Don't reset --gpu-hwdec-interop if vo_gpu uses dumb mode.
Diffstat (limited to 'video/out/gpu')
-rw-r--r-- | video/out/gpu/video.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index 29af4b92b1..fb290bc266 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -317,6 +317,7 @@ static const struct gl_video_opts gl_video_opts_def = { .tone_mapping_param = NAN, .tone_mapping_desat = 1.0, .early_flush = -1, + .hwdec_interop = "auto", }; static int validate_scaler_opt(struct mp_log *log, const m_option_t *opt, @@ -3433,6 +3434,7 @@ static void check_gl_features(struct gl_video *p) .tone_mapping_desat = p->opts.tone_mapping_desat, .early_flush = p->opts.early_flush, .icc_opts = p->opts.icc_opts, + .hwdec_interop = p->opts.hwdec_interop, }; for (int n = 0; n < SCALER_COUNT; n++) p->opts.scaler[n] = gl_video_opts_def.scaler[n]; |