[vlc-devel] [PATCH 1/7] input: Don't read meta from a preparsed item

Hugo Beauzée-Luyssen hugo at beauzee.fr
Fri Oct 4 12:00:24 CEST 2019


From: Thomas Guillem <thomas at gllm.fr>

As they are extremely likely to be read already
---
 src/input/input.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/input/input.c b/src/input/input.c
index 97d299a7bd..5e91d55859 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1304,6 +1304,8 @@ static int Init( input_thread_t * p_input )
                  priv->b_out_pace_control ? "a" : "" );
     }
 
+    if (!input_item_IsPreparsed(input_priv(p_input)->p_item))
+    {
     vlc_meta_t *p_meta = vlc_meta_New();
     if( p_meta != NULL )
     {
@@ -1320,6 +1322,7 @@ static int Init( input_thread_t * p_input )
         es_out_ControlSetMeta( priv->p_es_out, p_meta );
         vlc_meta_Delete( p_meta );
     }
+    }
 
     msg_Dbg( p_input, "`%s' successfully opened",
              input_priv(p_input)->p_item->psz_uri );
-- 
2.20.1



More information about the vlc-devel mailing list