From ca67928d7ab176c080a7e99f0d4ce0c5d1070844 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 16 Jan 2018 11:49:23 +0100 Subject: sws_utils: don't force callers to provide option struct mp_sws_set_from_cmdline() has the only purpose to respect the --sws- command line options. Instead of forcing callers to get the option struct containing these, let callers pass mpv_global, and get it from the option core code directly. This avoids minor annoyances later on. --- video/out/vo_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/vo_drm.c') diff --git a/video/out/vo_drm.c b/video/out/vo_drm.c index 24189d5b02..f32ed59b28 100644 --- a/video/out/vo_drm.c +++ b/video/out/vo_drm.c @@ -283,7 +283,7 @@ static int reconfig(struct vo *vo, struct mp_image_params *params) p->osd.mr = MPMIN(0, p->osd.mr); p->osd.ml = MPMIN(0, p->osd.ml); - mp_sws_set_from_cmdline(p->sws, vo->opts->sws_opts); + mp_sws_set_from_cmdline(p->sws, vo->global); p->sws->src = *params; p->sws->dst = (struct mp_image_params) { .imgfmt = IMGFMT, -- cgit v1.2.3