[vlc-commits] input/input: add missing alloc check

Thomas Guillem git at videolan.org
Mon Jan 9 15:59:50 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jan  9 15:59:28 2017 +0100| [52fe191948d9fbaa5d332cbd7445b6ba203da42c] | committer: Thomas Guillem

input/input: add missing alloc check

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

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

diff --git a/src/input/input.c b/src/input/input.c
index 0f71040..3552928 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1297,6 +1297,8 @@ static int Init( input_thread_t * p_input )
     /* Create es out */
     priv->p_es_out = input_EsOutTimeshiftNew( p_input, priv->p_es_out_display,
                                               priv->i_rate );
+    if( priv->p_es_out == NULL )
+        goto error;
 
     /* */
     input_ChangeState( p_input, OPENING_S );



More information about the vlc-commits mailing list