summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-07 19:31:47 +0100
committerwm4 <wm4@nowhere>2013-12-07 19:31:47 +0100
commit6025abffda964b07d04ff2806527d85d956e28ba (patch)
tree4f245d43d0ace3deaa7faba18e94d30c6c2b6809 /video
parenta54b775f80beb960889ce68122fb8416ebb0695f (diff)
downloadmpv-6025abffda964b07d04ff2806527d85d956e28ba.tar.bz2
mpv-6025abffda964b07d04ff2806527d85d956e28ba.tar.xz
vf: remove unused function
Diffstat (limited to 'video')
-rw-r--r--video/filter/vf.c22
-rw-r--r--video/filter/vf.h1
2 files changed, 0 insertions, 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);