From fd5207f56d13f70a7750ac457dc5efdb514d9845 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 10 Jun 2014 22:41:14 +0200 Subject: options: remove global variables for swscale options; rename them Additionally to removing the global variables, this makes the options more uniform. --ssf-... becomes --sws-..., and --sws becomes --sws- scaler. For --sws-scaler, use choices instead of magic integer values. --- video/out/vo_x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/vo_x11.c') diff --git a/video/out/vo_x11.c b/video/out/vo_x11.c index a8b37d4016..26af641dbb 100644 --- a/video/out/vo_x11.c +++ b/video/out/vo_x11.c @@ -370,7 +370,7 @@ static bool resize(struct vo *vo) } p->bpp = p->myximage[0]->bits_per_pixel; - mp_sws_set_from_cmdline(p->sws); + mp_sws_set_from_cmdline(p->sws, vo->opts->sws_opts); p->sws->src = p->in_format; p->sws->dst = (struct mp_image_params) { .imgfmt = fmte->mpfmt, -- cgit v1.2.3