diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-10-17 15:52:18 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:18:37 +0200 |
commit | 3452e2e907943dce4aeb4659f08bb2f966ea43ec (patch) | |
tree | d2cce3066626a5995b17bcffebd9eed5027a665d /libaf | |
parent | 14e4bb7d7069f88b11cfc630d1cefa0d0100d019 (diff) | |
download | mpv-3452e2e907943dce4aeb4659f08bb2f966ea43ec.tar.bz2 mpv-3452e2e907943dce4aeb4659f08bb2f966ea43ec.tar.xz |
libaf: Make af_reinit "public", to allow using it in future patches
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32504 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf')
-rw-r--r-- | libaf/af.c | 5 | ||||
-rw-r--r-- | libaf/af.h | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/libaf/af.c b/libaf/af.c index 0190a75f5e..47eb9fa5b0 100644 --- a/libaf/af.c +++ b/libaf/af.c @@ -248,10 +248,7 @@ void af_remove(af_stream_t* s, af_instance_t* af) 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 diff --git a/libaf/af.h b/libaf/af.h index 98ae163bd1..ceca34c90d 100644 --- a/libaf/af.h +++ b/libaf/af.h @@ -165,6 +165,13 @@ int af_init(af_stream_t* s); 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 |