[vlc-commits] vout/ios: avoid copying vd->info
Rémi Denis-Courmont
git at videolan.org
Thu Dec 20 19:42:50 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Dec 19 22:24:09 2018 +0200| [1f95d705f979f584001ec5bdea47bef50c64f5da] | committer: Rémi Denis-Courmont
vout/ios: avoid copying vd->info
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1f95d705f979f584001ec5bdea47bef50c64f5da
---
modules/video_output/ios.m | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/modules/video_output/ios.m b/modules/video_output/ios.m
index 38d789bbaf..0a2269c497 100644
--- a/modules/video_output/ios.m
+++ b/modules/video_output/ios.m
@@ -207,13 +207,9 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
goto bailout;
glsys->vgl = vgl;
- /* */
- 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 = PicturePool;
vd->prepare = PictureRender;
More information about the vlc-commits
mailing list