[vlc-commits] win32:common: don't setup event_cfg_t if it's not going to be used

Steve Lhomme git at videolan.org
Sat Nov 11 16:20:05 CET 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Sat Nov 11 15:34:19 2017 +0100| [c638b88d2beb873d23f0eb1b86afe401c92fb161] | committer: Thomas Guillem

win32:common: don't setup event_cfg_t if it's not going to be used

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

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

diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c
index f19559379d..d768043ed0 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -91,6 +91,7 @@ int CommonInit(vout_display_t *vd)
         return VLC_EGENERIC;
 #endif
 
+#if !VLC_WINSTORE_APP
     event_cfg_t cfg;
     memset(&cfg, 0, sizeof(cfg));
 #ifdef MODULE_NAME_IS_direct3d9
@@ -104,7 +105,6 @@ int CommonInit(vout_display_t *vd)
     cfg.width  = vd->cfg->display.width;
     cfg.height = vd->cfg->display.height;
 
-#if !VLC_WINSTORE_APP
     event_hwnd_t hwnd;
     if (EventThreadStart(sys->event, &hwnd, &cfg))
         return VLC_EGENERIC;



More information about the vlc-commits mailing list