[vlc-devel] [PATCH 01/12] demux: add DEMUX_IS_PLAYLIST

Thomas Guillem thomas at gllm.fr
Mon Jan 19 11:22:43 CET 2015


It returns true if the demux is a playlist (an archive, a directory or a
network share is also a playlist).

It will be used by the preparser in order to know if it should call demux_Demux
to fetch sub items.
---
 include/vlc_demux.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/vlc_demux.h b/include/vlc_demux.h
index 19f4d09..93197ad 100644
--- a/include/vlc_demux.h
+++ b/include/vlc_demux.h
@@ -173,6 +173,10 @@ enum demux_query_e
 
     DEMUX_CAN_SEEK,            /* arg1= bool*    can fail (assume false)*/
 
+    /* DEMUX_IS_PLAYLIST returns true if the demux is a playlist
+     * (an archive, a directory or a network share is also a playlist) */
+    DEMUX_IS_PLAYLIST,  /* arg1= bool*    can fail (assume false)*/
+
     /* Navigation */
     DEMUX_NAV_ACTIVATE,        /* res=can fail */
     DEMUX_NAV_UP,              /* res=can fail */
-- 
2.1.3




More information about the vlc-devel mailing list