From 2e0602f0e5cd03c17450b7c08e3ead0cc6e11997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Wed, 19 Dec 2018 22:25:24 +0200 Subject: [PATCH] wingdi: avoid copying vd->info --- modules/video_output/win32/wingdi.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/video_output/win32/wingdi.c b/modules/video_output/win32/wingdi.c index 073ab11c4f..3e281377bd 100644 --- a/modules/video_output/win32/wingdi.c +++ b/modules/video_output/win32/wingdi.c @@ -105,13 +105,10 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg, if (Init(vd, fmtp)) goto error; - vout_display_info_t info = vd->info; - info.is_slow = false; - info.has_double_click = true; - info.has_pictures_invalid = true; - /* */ - vd->info = info; + vd->info.is_slow = false; + vd->info.has_double_click = true; + vd->info.has_pictures_invalid = true; vd->pool = Pool; vd->prepare = NULL; -- GitLab