diff options
author | wm4 <wm4@nowhere> | 2019-10-31 15:18:57 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-10-31 15:26:03 +0100 |
commit | 835586513d026bcf1e7dec4693e07c28dda8cedd (patch) | |
tree | f96ce1fe2e8a474906ae09e9c9146d6e88030fd4 /video/out/vo_drm.c | |
parent | c10ba5eb8e62d04ed80cad512cf4863dadee07f1 (diff) | |
download | mpv-835586513d026bcf1e7dec4693e07c28dda8cedd.tar.bz2 mpv-835586513d026bcf1e7dec4693e07c28dda8cedd.tar.xz |
sws_utils: shuffle around some shit
Purpose uncertain. I guess it's slightly better, maybe.
The move of the sws/zimg options from VO opts (vo_opt_list) to the
top-level option list is tricky. VO opts have some helper code in vo.c,
that sends VOCTRL_SET_PANSCAN to the VO on every VO opts change. That's
because updating certain VO options used to be this way (and not just
the panscan option). This isn't needed anymore for sws/zimg options, so
explicitly move them away.
Diffstat (limited to 'video/out/vo_drm.c')
-rw-r--r-- | video/out/vo_drm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_drm.c b/video/out/vo_drm.c index 83dede468c..61722213ad 100644 --- a/video/out/vo_drm.c +++ b/video/out/vo_drm.c @@ -303,8 +303,6 @@ static int reconfig(struct vo *vo, struct mp_image_params *params) int w = p->dst.x1 - p->dst.x0; int h = p->dst.y1 - p->dst.y0; - mp_sws_set_from_cmdline(p->sws, vo->global); - p->sws->allow_zimg = true; p->sws->src = *params; p->sws->dst = (struct mp_image_params) { .imgfmt = p->imgfmt, @@ -555,6 +553,8 @@ static int preinit(struct vo *vo) { struct priv *p = vo->priv; p->sws = mp_sws_alloc(vo); + p->sws->log = vo->log; + mp_sws_enable_cmdline_opts(p->sws, vo->global); p->ev.version = DRM_EVENT_CONTEXT_VERSION; p->ev.page_flip_handler = &drm_pflip_cb; |