diff options
author | wm4 <wm4@nowhere> | 2015-12-19 17:55:14 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-12-19 18:35:58 +0100 |
commit | 1f7c099dc0feb9a160d9018ad6ad068e0295341a (patch) | |
tree | fb46a991dc1cb41136d4ffab0f08f6308c9abcd6 /video/filter/vf_dsize.c | |
parent | 78bfee53dd32bdc70af9294b11a04722a42b10c2 (diff) | |
download | mpv-1f7c099dc0feb9a160d9018ad6ad068e0295341a.tar.bz2 mpv-1f7c099dc0feb9a160d9018ad6ad068e0295341a.tar.xz |
vf: remove old config() callback
Diffstat (limited to 'video/filter/vf_dsize.c')
-rw-r--r-- | video/filter/vf_dsize.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/video/filter/vf_dsize.c b/video/filter/vf_dsize.c index 476ec27204..eafcaf3472 100644 --- a/video/filter/vf_dsize.c +++ b/video/filter/vf_dsize.c @@ -36,10 +36,10 @@ struct vf_priv_s { float aspect; }; -static int config(struct vf_instance *vf, - int width, int height, int d_width, int d_height, - unsigned int flags, unsigned int outfmt) +static int reconfig(struct vf_instance *vf, struct mp_image_params *in, + struct mp_image_params *out) { + int width = in->w, height = in->h, d_width = in->d_w, d_height = in->d_h; int w = vf->priv->w; int h = vf->priv->h; if (vf->priv->aspect < 0.001) { // did the user input aspect or w,h params @@ -74,12 +74,15 @@ static int config(struct vf_instance *vf, d_width = width; } } - return vf_next_config(vf, width, height, d_width, d_height, flags, outfmt); + *out = *in; + out->d_w = d_width; + out->d_h = d_height; + return 0; } static int vf_open(vf_instance_t *vf) { - vf->config = config; + vf->reconfig = reconfig; return 1; } |