[vlc-commits] input: Don't acquire the renderer when preparsing

Hugo Beauzée-Luyssen git at videolan.org
Tue Jan 16 17:19:15 CET 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Jan 15 10:15:00 2018 +0100| [cb5aa83e829b1c48b354e5ad2f785965087e43ef] | committer: Hugo Beauzée-Luyssen

input: Don't acquire the renderer when preparsing

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb5aa83e829b1c48b354e5ad2f785965087e43ef
---

 src/input/input.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/input/input.c b/src/input/input.c
index 31fe533514..1517ac06a4 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -327,7 +327,8 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
     priv->attachment_demux = NULL;
     priv->p_sout   = NULL;
     priv->b_out_pace_control = false;
-    priv->p_renderer = p_renderer ? vlc_renderer_item_hold( p_renderer ) : NULL;
+    priv->p_renderer = p_renderer && b_preparsing == false ?
+                vlc_renderer_item_hold( p_renderer ) : NULL;
 
     priv->viewpoint_changed = false;
     /* Fetch the viewpoint from the mediaplayer or the playlist if any */



More information about the vlc-commits mailing list