Commit c638b88d authored by Steve Lhomme's avatar Steve Lhomme Committed by Thomas Guillem

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

Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 9e1c0574
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment