[vlc-devel] [PATCH 12/15] vout: use vd->cfg with VOUT_DISPLAY_RESET_PICTURES

Steve Lhomme robux4 at ycbcr.xyz
Thu Sep 3 07:52:29 CEST 2020


It's always vd->cfg.
---
 modules/hw/vdpau/display.c         | 2 +-
 modules/video_output/wayland/shm.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/hw/vdpau/display.c b/modules/hw/vdpau/display.c
index 2ca9c519362..e8d0c1c3e73 100644
--- a/modules/hw/vdpau/display.c
+++ b/modules/hw/vdpau/display.c
@@ -237,7 +237,7 @@ static int Control(vout_display_t *vd, int query, va_list ap)
         vout_display_place_t place;
 
         msg_Dbg(vd, "resetting pictures");
-        vout_display_PlacePicture(&place, src, cfg);
+        vout_display_PlacePicture(&place, src, vd->cfg);
 
         fmt->i_width = src->i_width * place.width / src->i_visible_width;
         fmt->i_height = src->i_height * place.height / src->i_visible_height;
diff --git a/modules/video_output/wayland/shm.c b/modules/video_output/wayland/shm.c
index 10a9cf3d022..7f918ac2998 100644
--- a/modules/video_output/wayland/shm.c
+++ b/modules/video_output/wayland/shm.c
@@ -166,7 +166,7 @@ static int Control(vout_display_t *vd, int query, va_list ap)
             video_format_t src;
             assert(sys->viewport == NULL);
 
-            vout_display_PlacePicture(&place, vd->source, cfg);
+            vout_display_PlacePicture(&place, vd->source, vd->cfg);
             video_format_ApplyRotation(&src, vd->source);
 
             fmt->i_width  = src.i_width * place.width
-- 
2.26.2



More information about the vlc-devel mailing list