[vlc-devel] [PATCH 2/7] input: Preparse: fetch sub items if item is a playlist
Jean-Baptiste Kempf
jb at videolan.org
Sat Jan 17 05:49:47 CET 2015
OK.
On 15 Jan, Thomas Guillem wrote :
> ---
> src/input/input.c | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/src/input/input.c b/src/input/input.c
> index 48e085d..fea1b00 100644
> --- a/src/input/input.c
> +++ b/src/input/input.c
> @@ -192,8 +192,17 @@ int input_Preparse( vlc_object_t *p_parent, input_item_t *p_item )
> if( !p_input )
> return VLC_EGENERIC;
>
> - if( !Init( p_input ) )
> + if( !Init( p_input ) ) {
> + /* if the demux is a playlist, call Mainloop that will call
> + * demux_Demux in order to fetch sub items */
> + bool b_is_playlist = false;
> + demux_Control( p_input->p->input.p_demux,
> + DEMUX_IS_PLAYLIST,
> + &b_is_playlist );
> + if( b_is_playlist )
> + MainLoop( p_input, false );
> End( p_input );
> + }
>
> vlc_object_release( p_input );
>
> --
> 2.1.3
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
--
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