diff options
author | Dudemanguy <random342@airmail.cc> | 2023-09-19 17:06:58 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-09-22 14:20:38 +0000 |
commit | a9177201d4a6b02805cdda07530d375dcbade745 (patch) | |
tree | d2be58adfaa2190759fd70a6500d75577a086f84 | |
parent | 610faf705bba229423f0d3e0943c53ecfe860db7 (diff) | |
download | mpv-a9177201d4a6b02805cdda07530d375dcbade745.tar.bz2 mpv-a9177201d4a6b02805cdda07530d375dcbade745.tar.xz |
video/out/gpu: replace mp_read_option_raw call
-rw-r--r-- | video/out/gpu/video.c | 6 |
1 files 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; |