[vlc-devel] [RFC PATCH 2/8] demux: Add a demux_IsDemuxFilter helper

Hugo Beauzée-Luyssen hugo at beauzee.fr
Thu Jul 6 19:14:25 CEST 2017


---
 src/input/demux.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/input/demux.h b/src/input/demux.h
index 25c9520de2..24d5ad58bd 100644
--- a/src/input/demux.h
+++ b/src/input/demux.h
@@ -42,4 +42,10 @@ int demux_GetSeekpoint( demux_t * );
 
 demux_t *demux_FilterChainNew( demux_t *p_demux, const char *psz_name );
 
+static inline bool demux_IsDemuxFilter( const demux_t* p_demux )
+{
+    return p_demux->psz_access == NULL && p_demux->psz_demux == NULL &&
+            p_demux->psz_file == NULL && p_demux->psz_location == NULL;
+}
+
 #endif
-- 
2.11.0



More information about the vlc-devel mailing list