[vlc-devel] [PATCH 4/6] input: preparse associated media during preparse if requested

Alexandre Janniaux ajanni at videolabs.io
Tue Dec 3 17:02:25 CET 2019


Whenever the preparser client asked to also prepase associated media,
like input slaves, avoid skipping parts of the analysis process implying
them before the preparsing ends.
---
 src/input/input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/input.c b/src/input/input.c
index b8df8b6990..634557ac2b 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1283,7 +1283,7 @@ static int Init( input_thread_t * p_input )
     input_SendEventTimes( p_input, 0.0, VLC_TICK_INVALID, priv->normal_time,
                           i_length );
 
-    if( !priv->b_preparsing )
+    if( !priv->b_preparsing || priv->p_item->b_preparse_associated )
     {
         StartTitle( p_input );
         SetSubtitlesOptions( p_input );
-- 
2.24.0



More information about the vlc-devel mailing list