[vlc-commits] vout: yuv: refactor for next changes

Thomas Guillem git at videolan.org
Tue Nov 27 15:48:52 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Oct 30 15:58:09 2018 +0100| [84c4958f5ef3156ed8ad56d12c75f03d8c89de0a] | committer: Steve Lhomme

vout: yuv: refactor for next changes

vd->fmt and vd->cfg will be removed.
fmt and cfg will be passed by Open() and controls.

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

 modules/video_output/yuv.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/yuv.c b/modules/video_output/yuv.c
index dc1864dcb7..d5dbd93201 100644
--- a/modules/video_output/yuv.c
+++ b/modules/video_output/yuv.c
@@ -95,6 +95,7 @@ struct vout_display_sys_t {
 static int Open(vlc_object_t *object)
 {
     vout_display_t *vd = (vout_display_t *)object;
+    video_format_t *fmtp = &vd->fmt;
     vout_display_sys_t *sys;
 
     /* Allocate instance and initialize some members */
@@ -149,12 +150,12 @@ static int Open(vlc_object_t *object)
 
     /* */
     video_format_t fmt;
-    video_format_ApplyRotation(&fmt, &vd->fmt);
+    video_format_ApplyRotation(&fmt, fmtp);
     fmt.i_chroma = chroma;
     video_format_FixRgb(&fmt);
 
     /* */
-    vd->fmt     = fmt;
+    *fmtp = fmt;
     vd->pool    = Pool;
     vd->prepare = NULL;
     vd->display = Display;



More information about the vlc-commits mailing list