[vlc-commits] glwin32: avoid copying vd->info

Rémi Denis-Courmont git at videolan.org
Thu Dec 20 19:42:55 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Dec 19 22:25:17 2018 +0200| [e6dc15a1d9b5b4b26a38bde0936c7e43c4e21493] | committer: Rémi Denis-Courmont

glwin32: avoid copying vd->info

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

 modules/video_output/win32/glwin32.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/modules/video_output/win32/glwin32.c b/modules/video_output/win32/glwin32.c
index c3b82a410b..0486a99232 100644
--- a/modules/video_output/win32/glwin32.c
+++ b/modules/video_output/win32/glwin32.c
@@ -154,13 +154,11 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
     if (!sys->vgl)
         goto error;
 
-    vout_display_info_t info = vd->info;
-    info.has_double_click = true;
-    info.subpicture_chromas = subpicture_chromas;
+    /* Setup vout_display now that everything is fine */
+    vd->info.has_double_click = true;
+    vd->info.subpicture_chromas = subpicture_chromas;
 
-   /* Setup vout_display now that everything is fine */
     *fmtp    = fmt;
-    vd->info = info;
 
     vd->pool    = Pool;
     vd->prepare = Prepare;



More information about the vlc-commits mailing list