[vlc-devel] [RFC PATCH 7/7] input: Preparse: parse for subitems too
Thomas Guillem
thomas at gllm.fr
Wed Jan 7 12:06:42 CET 2015
---
src/input/input.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/input/input.c b/src/input/input.c
index 48e085d..7b537ce 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -192,8 +192,16 @@ 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 can have subitems, call Mainloop in order to fetch them */
+ bool b_can_have_sub_items = false;
+ demux_Control( p_input->p->input.p_demux,
+ DEMUX_CAN_HAVE_SUB_ITEMS,
+ &b_can_have_sub_items );
+ if( b_can_have_sub_items )
+ MainLoop( p_input, false );
End( p_input );
+ }
vlc_object_release( p_input );
--
2.1.3
More information about the vlc-devel
mailing list