]> git.sesse.net Git - vlc/commitdiff
playlist: return true for DEMUX_IS_PLAYLIST
authorThomas Guillem <thomas@gllm.fr>
Mon, 19 Jan 2015 10:22:45 +0000 (11:22 +0100)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 20 Jan 2015 06:17:18 +0000 (08:17 +0200)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/demux/playlist/playlist.c

index 0d0e7949526e17c554728a64541787bbe297194f..4b25dd36796b056622c343227e5c986e26b6f5c1 100644 (file)
@@ -154,7 +154,16 @@ vlc_module_end ()
 
 int Control(demux_t *demux, int query, va_list args)
 {
-    (void) demux; (void) query; (void) args;
+    (void) demux;
+    switch( query )
+    {
+        case DEMUX_IS_PLAYLIST:
+        {
+            bool *pb_bool = (bool*)va_arg( args, bool * );
+            *pb_bool = true;
+            return VLC_SUCCESS;
+        }
+    }
     return VLC_EGENERIC;
 }