[vlc-commits] caca: don't use the original picture placement

Steve Lhomme git at videolan.org
Tue Aug 25 07:16:07 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Aug 24 13:25:02 2020 +0200| [e7dee070408a55f240d84152d6516d4d88ec083e] | committer: Steve Lhomme

caca: don't use the original picture placement

We overwrite all the fields of sys->place further in Place().

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

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

diff --git a/modules/video_output/caca.c b/modules/video_output/caca.c
index c5ae54fc67..abc9c6d9f8 100644
--- a/modules/video_output/caca.c
+++ b/modules/video_output/caca.c
@@ -94,12 +94,10 @@ static void VoutDisplayEventKey(vout_display_sys_t *sys, int key)
 /**
  * Compute the place in canvas unit.
  */
-static void Place(vout_display_t *vd, const vout_display_cfg_t *cfg)
+static void Place(vout_display_t *vd)
 {
     vout_display_sys_t *sys = vd->sys;
 
-    vout_display_PlacePicture(&sys->place, &vd->source, cfg);
-
     const int canvas_width   = cucul_get_canvas_width(sys->cv);
     const int canvas_height  = cucul_get_canvas_height(sys->cv);
     const int display_width  = caca_get_display_width(sys->dp);
@@ -501,7 +499,7 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
     /* Fix initial state */
     caca_refresh_display(sys->dp);
 
-    Place(vd, cfg);
+    Place(vd);
 
     return VLC_SUCCESS;
 



More information about the vlc-commits mailing list