[vlc-commits] playlist: return true for DEMUX_IS_PLAYLIST
Thomas Guillem
git at videolan.org
Tue Jan 20 07:18:47 CET 2015
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jan 19 11:22:45 2015 +0100| [6bf8fffefc2a3347ebf3aa090109083201987425] | committer: Rémi Denis-Courmont
playlist: return true for DEMUX_IS_PLAYLIST
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6bf8fffefc2a3347ebf3aa090109083201987425
---
modules/demux/playlist/playlist.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/modules/demux/playlist/playlist.c b/modules/demux/playlist/playlist.c
index 0d0e794..4b25dd3 100644
--- a/modules/demux/playlist/playlist.c
+++ b/modules/demux/playlist/playlist.c
@@ -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;
}
More information about the vlc-commits
mailing list