[vlc-commits] es_out: check return from ES_OUT_SET_ES_FMT

Thomas Guillem git at videolan.org
Mon Sep 3 17:05:54 CEST 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Sep  3 15:18:44 2018 +0200| [ba8ce2f02d742f0b425a4d54b79d52ac49bff6ae] | committer: Thomas Guillem

es_out: check return from ES_OUT_SET_ES_FMT

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

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

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 305008c190..69acd09809 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2616,7 +2616,9 @@ static int EsOutVaControlLocked( es_out_t *out, int i_query, va_list args )
             return VLC_EGENERIC;
 
         es_format_Clean( &es->fmt );
-        es_format_Copy( &es->fmt, p_fmt );
+        int ret = es_format_Copy( &es->fmt, p_fmt );
+        if( ret != VLC_SUCCESS )
+            return ret;
 
         if( es->p_dec )
         {



More information about the vlc-commits mailing list