[vlc-devel] [PATCH 2/2] core display: Fix usage of uninitialized variable

Jean-Baptiste Kempf jb at videolan.org
Tue Aug 8 11:20:39 CEST 2017


---
 src/video_output/display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index 778942be4e..01dd0a4630 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -442,7 +442,7 @@ static int VoutDisplayCreateRender(vout_display_t *vd)
     es_format_InitFromVideo(&src, &v_src);
 
     /* */
-    int ret;
+    int ret = VLC_EGENERIC;
 
     for (int i = 0; i < 1 + (v_dst_cmp.i_chroma != v_dst.i_chroma); i++) {
         es_format_t dst;
-- 
2.13.3



More information about the vlc-devel mailing list