[vlc-devel] [PATCH] input: check input_EsOutNew return

Thomas Guillem thomas at gllm.fr
Wed Feb 26 14:14:21 CET 2020


---
 src/input/input.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/input/input.c b/src/input/input.c
index 9004737a10b..692473cb70b 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -404,6 +404,11 @@ static input_thread_t *Create( vlc_object_t *p_parent,
         priv->stats = NULL;
 
     priv->p_es_out_display = input_EsOutNew( p_input, priv->rate );
+    if( !priv->p_es_out_display )
+    {
+        Destroy( p_input );
+        return NULL;
+    }
     priv->p_es_out = NULL;
 
     return p_input;
-- 
2.20.1



More information about the vlc-devel mailing list