Mercurial > mplayer.hg
changeset 32418:71a04d45357c
Make af_reinit "public", to allow using it in future patches.
author | reimar |
---|---|
date | Sun, 17 Oct 2010 15:52:18 +0000 |
parents | f2b40b588792 |
children | 8f35fc25523f |
files | libaf/af.c libaf/af.h |
diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libaf/af.c Sun Oct 17 15:30:14 2010 +0000 +++ b/libaf/af.c Sun Oct 17 15:52:18 2010 +0000 @@ -251,10 +251,7 @@ free(af); } -/* Reinitializes all filters downstream from the filter given in the - argument the return value is AF_OK if success and AF_ERROR if - failure */ -static int af_reinit(af_stream_t* s, af_instance_t* af) +int af_reinit(af_stream_t* s, af_instance_t* af) { do{ af_data_t in; // Format of the input to current filter
--- a/libaf/af.h Sun Oct 17 15:30:14 2010 +0000 +++ b/libaf/af.h Sun Oct 17 15:52:18 2010 +0000 @@ -163,6 +163,13 @@ void af_uninit(af_stream_t* s); /** + * \brief Reinit the filter list from the given filter on downwards + * \param Filter instance to begin the reinit from + * \return AF_OK on success or AF_ERROR on failure + */ +int af_reinit(af_stream_t* s, af_instance_t* af); + +/** * \brief This function adds the filter "name" to the stream s. * \param name name of filter to add * \return pointer to the new filter, NULL if insert failed