diff options
author | wm4 <wm4@nowhere> | 2013-12-05 22:56:51 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-05 22:58:54 +0100 |
commit | 9839bb08dffbce34712ed6d6e41d536973fb8c47 (patch) | |
tree | fd4ce966077e603e793310f37ea37f3a39d9c4b7 /video/filter | |
parent | 2d0a9c7af081f90d21cc811871bd67bbb6dcfd94 (diff) | |
download | mpv-9839bb08dffbce34712ed6d6e41d536973fb8c47.tar.bz2 mpv-9839bb08dffbce34712ed6d6e41d536973fb8c47.tar.xz |
vf: declare config() as legacy
Diffstat (limited to 'video/filter')
-rw-r--r-- | video/filter/vf.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/video/filter/vf.h b/video/filter/vf.h index 9e571570f9..1e6420b33c 100644 --- a/video/filter/vf.h +++ b/video/filter/vf.h @@ -49,15 +49,15 @@ struct vf_format { typedef struct vf_instance { const vf_info_t *info; - int (*config)(struct vf_instance *vf, - int width, int height, int d_width, int d_height, - unsigned int flags, unsigned int outfmt); - - // Alternative to config() (can pass more image parameters) // Note: the callee is allowed to write *params. int (*reconfig)(struct vf_instance *vf, struct mp_image_params *params, int flags); + // Legacy variant, use reconfig instead. + int (*config)(struct vf_instance *vf, + int width, int height, int d_width, int d_height, + unsigned int flags, unsigned int outfmt); + int (*control)(struct vf_instance *vf, int request, void *data); int (*query_format)(struct vf_instance *vf, unsigned int fmt); |