From 6025abffda964b07d04ff2806527d85d956e28ba Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 7 Dec 2013 19:31:47 +0100 Subject: vf: remove unused function --- video/filter/vf.c | 22 ---------------------- video/filter/vf.h | 1 - 2 files changed, 23 deletions(-) diff --git a/video/filter/vf.c b/video/filter/vf.c index 31ad340bae..5b226003b4 100644 --- a/video/filter/vf.c +++ b/video/filter/vf.c @@ -282,28 +282,6 @@ vf_instance_t *vf_open_filter(struct MPOpts *opts, vf_instance_t *next, return vf_open(opts, next, name, args); } -/** - * \brief adds a filter before the last one (which should be the vo filter). - * \param vf start of the filter chain. - * \param name name of the filter to add. - * \param args argument list for the filter. - * \return pointer to the filter instance that was created. - */ -vf_instance_t *vf_add_before_vo(vf_instance_t **vf, char *name, char **args) -{ - struct MPOpts *opts = (*vf)->opts; - vf_instance_t *vo, *prev = NULL, *new; - // Find the last filter (should be vf_vo) - for (vo = *vf; vo->next; vo = vo->next) - prev = vo; - new = vf_open_filter(opts, vo, name, args); - if (prev) - prev->next = new; - else - *vf = new; - return new; -} - //============================================================================ unsigned int vf_match_csp(vf_instance_t **vfp, const unsigned int *list, diff --git a/video/filter/vf.h b/video/filter/vf.h index 1e6420b33c..2c7ac2133e 100644 --- a/video/filter/vf.h +++ b/video/filter/vf.h @@ -119,7 +119,6 @@ void vf_chain_seek_reset(struct vf_instance *vf); vf_instance_t *vf_open_filter(struct MPOpts *opts, vf_instance_t *next, const char *name, char **args); -vf_instance_t *vf_add_before_vo(vf_instance_t **vf, char *name, char **args); unsigned int vf_match_csp(vf_instance_t **vfp, const unsigned int *list, unsigned int preferred); -- cgit v1.2.3