From 437ecc5cad9d31899a0b0bf3e9c696bc61586621 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 4 Dec 2013 00:01:38 +0100 Subject: video/filter: remove legacy option handling hacks All filters now either use the generic option parser, or don't have options. This finally finishes a transition started in 2003 (see git commit 33b62af94760186c). Why are MPlayer devs so monumentally lazy? Sorry, but this takes the cake. You had 10 years. --- video/filter/vf_lavfi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/filter/vf_lavfi.c') diff --git a/video/filter/vf_lavfi.c b/video/filter/vf_lavfi.c index 9e064f49d9..c5fe973d2b 100644 --- a/video/filter/vf_lavfi.c +++ b/video/filter/vf_lavfi.c @@ -329,7 +329,7 @@ static void uninit(struct vf_instance *vf) destroy_graph(vf); } -static int vf_open(vf_instance_t *vf, char *args) +static int vf_open(vf_instance_t *vf) { vf->reconfig = NULL; vf->config = config; @@ -459,7 +459,7 @@ int vf_lw_set_graph(struct vf_instance *vf, struct vf_lw_opts *lavfi_opts, va_end(ap); p->old_priv = old_priv; // Note: we should be sure vf_open really overwrites _all_ vf callbacks. - if (vf_open(vf, NULL) < 1) + if (vf_open(vf) < 1) abort(); return 1; } -- cgit v1.2.3