summaryrefslogtreecommitdiffstats
path: root/video/filter
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-01-16 11:49:23 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-01-18 00:59:07 -0800
commitca67928d7ab176c080a7e99f0d4ce0c5d1070844 (patch)
treeb58c0101645ab42ad482a8cac9e5446df8133116 /video/filter
parentc59db62f510dcb7c4bdff0d35fb1cce2c3b2c7a5 (diff)
downloadmpv-ca67928d7ab176c080a7e99f0d4ce0c5d1070844.tar.bz2
mpv-ca67928d7ab176c080a7e99f0d4ce0c5d1070844.tar.xz
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.
Diffstat (limited to 'video/filter')
-rw-r--r--video/filter/vf_convert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/filter/vf_convert.c b/video/filter/vf_convert.c
index 0714a532d0..7a7fdce228 100644
--- a/video/filter/vf_convert.c
+++ b/video/filter/vf_convert.c
@@ -78,7 +78,7 @@ static int reconfig(struct vf_instance *vf, struct mp_image_params *in,
mp_image_params_guess_csp(out);
- mp_sws_set_from_cmdline(vf->priv->sws, vf->chain->opts->vo->sws_opts);
+ mp_sws_set_from_cmdline(vf->priv->sws, vf->chain->global);
vf->priv->sws->src = *in;
vf->priv->sws->dst = *out;