From 5196c34aecd55a705e3f978b47ddb7f1c1329d58 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 10 Dec 2017 23:54:32 +0200 Subject: video: properly initialize and set hwdec_interop Don't reset --gpu-hwdec-interop if vo_gpu uses dumb mode. --- video/out/gpu/video.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video') 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]; -- cgit v1.2.3