mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 09:02:38 +00:00
vf: remove unused function
This commit is contained in:
parent
a54b775f80
commit
6025abffda
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user