[vlc-commits] vout: win32: Fix use of potentially uninitialized value

Hugo Beauzée-Luyssen git at videolan.org
Wed Jun 15 13:29:41 CEST 2016


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Jun 15 13:28:13 2016 +0200| [485a1940bad4b854c1e39e66ebba4562d8e34aa0] | committer: Hugo Beauzée-Luyssen

vout: win32: Fix use of potentially uninitialized value

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

 modules/video_output/win32/common.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c
index 886d579..a1e10d4 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -75,6 +75,8 @@ int CommonInit(vout_display_t *vd)
     sys->event = EventThreadCreate(vd);
     if (!sys->event)
         return VLC_EGENERIC;
+#elif defined(HAVE_ID3D11VIDEODECODER)
+    sys->context_lock = INVALID_HANDLE_VALUE;
 #endif
 
     event_cfg_t cfg;



More information about the vlc-commits mailing list