[vlc-commits] input: check input_EsOutNew return

Thomas Guillem git at videolan.org
Thu Feb 27 14:09:49 CET 2020


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Feb 26 14:13:23 2020 +0100| [c51af0f680c22566283880a42714eb13bc2ab022] | committer: Thomas Guillem

input: check input_EsOutNew return

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

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

diff --git a/src/input/input.c b/src/input/input.c
index 1ee3a3c55a..475a24b7ad 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -403,6 +403,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;



More information about the vlc-commits mailing list