]> git.sesse.net Git - vlc/commitdiff
demux: add DEMUX_IS_PLAYLIST
authorThomas Guillem <thomas@gllm.fr>
Mon, 19 Jan 2015 10:22:43 +0000 (11:22 +0100)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 20 Jan 2015 06:17:18 +0000 (08:17 +0200)
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.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
include/vlc_demux.h

index 19f4d095f1d5900a49a840ff8dffbb114b81bc6c..93197ad3bd86fe6391289788766663864fa1d460 100644 (file)
@@ -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 */