[vlc-commits] wingdi: avoid copying vd->info
Rémi Denis-Courmont
git at videolan.org
Thu Dec 20 19:42:56 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Dec 19 22:25:24 2018 +0200| [2e0602f0e5cd03c17450b7c08e3ead0cc6e11997] | committer: Rémi Denis-Courmont
wingdi: avoid copying vd->info
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2e0602f0e5cd03c17450b7c08e3ead0cc6e11997
---
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;
More information about the vlc-commits
mailing list