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

Hugo Beauzée-Luyssen git at videolan.org
Wed Jan 17 10:08:28 CET 2018


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

input: Don't acquire the renderer when preparsing

(cherry picked from commit cb5aa83e829b1c48b354e5ad2f785965087e43ef)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 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 b80f8867d7..c9219b74c5 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -326,7 +326,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