summaryrefslogtreecommitdiffstats
path: root/video/filter/vf.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-15 00:57:04 +0200
committerwm4 <wm4@nowhere>2013-07-15 01:49:26 +0200
commit88e813aae6f2a91177b450a46c04a26db276c422 (patch)
tree9eb84e4ec3efa8df6ef5e7c50d9711f91adea082 /video/filter/vf.c
parent17ab38bc664308ea6fe17249b9ddd434b6e05d8e (diff)
downloadmpv-88e813aae6f2a91177b450a46c04a26db276c422.tar.bz2
mpv-88e813aae6f2a91177b450a46c04a26db276c422.tar.xz
vf: add vf_control wrapper
Slightly cleaner, although rather redundant. But still, why wasn't this added 10 years ago?
Diffstat (limited to 'video/filter/vf.c')
-rw-r--r--video/filter/vf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/filter/vf.c b/video/filter/vf.c
index 1402ad3efc..1570e8402c 100644
--- a/video/filter/vf.c
+++ b/video/filter/vf.c
@@ -123,6 +123,11 @@ const m_obj_list_t vf_obj_list = {
M_ST_OFF(vf_info_t, opts)
};
+int vf_control(struct vf_instance *vf, int cmd, void *arg)
+{
+ return vf->control(vf, cmd, arg);
+}
+
// Get a new image for filter output, with size and pixel format according to
// the last vf_config call.
struct mp_image *vf_alloc_out_image(struct vf_instance *vf)