[vlc-commits] vout/macosx: avoid copying vd->info

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


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

vout/macosx: avoid copying vd->info

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

 modules/video_output/macosx.m | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index eb25ea29e2..ebc2444793 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -239,13 +239,9 @@ static int Open (vout_display_t *vd, const vout_display_cfg_t *cfg,
             goto error;
         }
 
-        /* */
-        vout_display_info_t info = vd->info;
-        info.has_pictures_invalid = false;
-        info.subpicture_chromas = subpicture_chromas;
-
         /* Setup vout_display_t once everything is fine */
-        vd->info = info;
+        vd->info.has_pictures_invalid = false;
+        vd->info.subpicture_chromas = subpicture_chromas;
 
         vd->pool = Pool;
         vd->prepare = PictureRender;



More information about the vlc-commits mailing list