mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 04:42:10 +00:00
video: properly initialize and set hwdec_interop
Don't reset --gpu-hwdec-interop if vo_gpu uses dumb mode.
This commit is contained in:
parent
a4705e8b59
commit
5196c34aec
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user