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

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


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sun Oct 28 16:02:23 2018 +0100| [fa7a6a2c32d4f6daf59e00f38cc72aedb7b2075f] | committer: Steve Lhomme

vout: fb: 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=fa7a6a2c32d4f6daf59e00f38cc72aedb7b2075f
---

 modules/video_output/fb.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/fb.c b/modules/video_output/fb.c
index 9666bfa1c7..424c045707 100644
--- a/modules/video_output/fb.c
+++ b/modules/video_output/fb.c
@@ -173,6 +173,8 @@ static void ClearScreen(vout_display_sys_t *sys)
 static int Open(vlc_object_t *object)
 {
     vout_display_t     *vd = (vout_display_t *)object;
+    const vout_display_cfg_t *cfg = vd->cfg;
+    video_format_t *fmtp = &vd->fmt;
     vout_display_sys_t *sys;
 
     if (vout_display_IsWindowed(vd))
@@ -256,7 +258,7 @@ static int Open(vlc_object_t *object)
 
     /* */
     video_format_t fmt;
-    video_format_ApplyRotation(&fmt, &vd->fmt);
+    video_format_ApplyRotation(&fmt, fmtp);
 
     if (sys->chroma) {
         fmt.i_chroma = sys->chroma;
@@ -299,7 +301,7 @@ static int Open(vlc_object_t *object)
     fmt.i_visible_height = sys->height;
 
     /* */
-    vd->fmt     = fmt;
+    *fmtp = fmt;
     vd->pool    = Pool;
     vd->prepare = NULL;
     vd->display = Display;



More information about the vlc-commits mailing list