From a9177201d4a6b02805cdda07530d375dcbade745 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Tue, 19 Sep 2023 17:06:58 -0500 Subject: video/out/gpu: replace mp_read_option_raw call --- video/out/gpu/video.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index c55994f3b0..d29c58a988 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -4129,13 +4129,13 @@ static void reinit_from_options(struct gl_video *p) gl_video_setup_hooks(p); reinit_osd(p); - int vs; - mp_read_option_raw(p->global, "video-sync", &m_option_type_choice, &vs); - if (p->opts.interpolation && !vs && !p->dsi_warned) { + struct mp_vo_opts *vo_opts = mp_get_config_group(p, p->global, &vo_sub_opts); + if (p->opts.interpolation && !vo_opts->video_sync && !p->dsi_warned) { MP_WARN(p, "Interpolation now requires enabling display-sync mode.\n" "E.g.: --video-sync=display-resample\n"); p->dsi_warned = true; } + talloc_free(vo_opts); if (p->opts.correct_downscaling && !p->correct_downscaling_warned) { const char *name = p->opts.scaler[SCALER_DSCALE].kernel.name; -- cgit v1.2.3