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

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


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

caopengllayer: avoid copying vd->info

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

 modules/video_output/caopengllayer.m | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/video_output/caopengllayer.m b/modules/video_output/caopengllayer.m
index 44c8ded967..d0c55dd2a7 100644
--- a/modules/video_output/caopengllayer.m
+++ b/modules/video_output/caopengllayer.m
@@ -197,9 +197,7 @@ static int Open (vout_display_t *vd, const vout_display_cfg_t *cfg,
         }
 
         /* setup vout display */
-        vout_display_info_t info = vd->info;
-        info.subpicture_chromas = subpicture_chromas;
-        vd->info = info;
+        vd->info.subpicture_chromas = subpicture_chromas;
 
         vd->pool    = Pool;
         vd->prepare = PictureRender;



More information about the vlc-commits mailing list