[vlc-commits] input: Don't read meta from a preparsed item
Thomas Guillem
git at videolan.org
Tue Oct 29 11:56:03 CET 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Feb 7 16:00:52 2019 +0100| [974070ed691436c0cda14461c3e1db3539f907bd] | committer: Hugo Beauzée-Luyssen
input: Don't read meta from a preparsed item
As they are extremely likely to be read already
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=974070ed691436c0cda14461c3e1db3539f907bd
---
src/input/input.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/input/input.c b/src/input/input.c
index 6879825969..b1b87df81e 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1306,6 +1306,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 )
{
@@ -1322,6 +1324,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 );
More information about the vlc-commits
mailing list