[vlc-devel] [PATCH 1/7] demux: add DEMUX_IS_PLAYLIST
Jean-Baptiste Kempf
jb at videolan.org
Sat Jan 17 05:49:39 CET 2015
On 15 Jan, Thomas Guillem wrote :
> 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.
OK.
> 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;
> }
>
This should be in a separate patch.
With my kindest regards,
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
More information about the vlc-devel
mailing list