diff options
author | wm4 <wm4@nowhere> | 2013-12-04 00:01:38 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-04 00:07:40 +0100 |
commit | 437ecc5cad9d31899a0b0bf3e9c696bc61586621 (patch) | |
tree | 2658f50f9b0682d91aca34bec69c5132f549659e /video/filter/vf_lavfi.c | |
parent | 079e0e796350a3df64c03619b7593e1d934bf321 (diff) | |
download | mpv-437ecc5cad9d31899a0b0bf3e9c696bc61586621.tar.bz2 mpv-437ecc5cad9d31899a0b0bf3e9c696bc61586621.tar.xz |
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.
Diffstat (limited to 'video/filter/vf_lavfi.c')
-rw-r--r-- | video/filter/vf_lavfi.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |