[vlc-commits] xcb/xvideo: avoid copying vd->info
Rémi Denis-Courmont
git at videolan.org
Thu Dec 20 19:42:57 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Dec 19 22:25:24 2018 +0200| [45f9593ad2628cb6458f8f291597386b78da9b57] | committer: Rémi Denis-Courmont
xcb/xvideo: avoid copying vd->info
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=45f9593ad2628cb6458f8f291597386b78da9b57
---
modules/video_output/xcb/xvideo.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c
index 874da65609..ddea81b1c7 100644
--- a/modules/video_output/xcb/xvideo.c
+++ b/modules/video_output/xcb/xvideo.c
@@ -546,17 +546,14 @@ static int Open (vout_display_t *vd, const vout_display_cfg_t *cfg,
p_sys->shm = XCB_shm_Check (obj, conn);
p_sys->visible = false;
- /* */
- vout_display_info_t info = vd->info;
- info.has_pictures_invalid = false;
-
/* Setup vout_display_t once everything is fine */
+ vd->info.has_pictures_invalid = false;
+
p_sys->swap_uv = vlc_fourcc_AreUVPlanesSwapped (fmt.i_chroma,
fmtp->i_chroma);
if (p_sys->swap_uv)
fmt.i_chroma = fmtp->i_chroma;
*fmtp = fmt;
- vd->info = info;
vd->pool = Pool;
vd->prepare = NULL;
More information about the vlc-commits
mailing list