[vlc-commits] stream_filter: reorder to avoid forward declaration
Rémi Denis-Courmont
git at videolan.org
Fri Apr 6 20:05:06 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Apr 6 20:32:11 2018 +0300| [5d36f25f03da77ae94444681f58d68290a083f92] | committer: Rémi Denis-Courmont
stream_filter: reorder to avoid forward declaration
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5d36f25f03da77ae94444681f58d68290a083f92
---
src/input/stream_filter.c | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/src/input/stream_filter.c b/src/input/stream_filter.c
index 5bfd29985c..8d7cff27cb 100644
--- a/src/input/stream_filter.c
+++ b/src/input/stream_filter.c
@@ -34,7 +34,15 @@
#include "stream.h"
-static void StreamDelete( stream_t * );
+static void StreamDelete(stream_t *s)
+{
+ module_unneed(s, s->p_module);
+
+ if (s->s != NULL)
+ vlc_stream_Delete(s->s);
+
+ free(s->psz_filepath);
+}
stream_t *vlc_stream_FilterNew( stream_t *p_source,
const char *psz_stream_filter )
@@ -110,13 +118,3 @@ stream_t *stream_FilterChainNew( stream_t *p_source, const char *psz_chain )
return p_source;
}
-
-static void StreamDelete( stream_t *s )
-{
- module_unneed( s, s->p_module );
-
- if( s->s != NULL )
- vlc_stream_Delete( s->s );
-
- free(s->psz_filepath);
-}
More information about the vlc-commits
mailing list