video: properly initialize and set hwdec_interop

Don't reset --gpu-hwdec-interop if vo_gpu uses dumb mode.
This commit is contained in:
wm4 2017-12-10 23:54:32 +02:00 committed by Jan Ekström
parent a4705e8b59
commit 5196c34aec
1 changed files with 2 additions and 0 deletions

View File

@ -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];