[vlc-devel] [PATCH v2 10/19] vdpau/display: use the picture placement from the core on open

Steve Lhomme robux4 at ycbcr.xyz
Tue Aug 25 16:20:23 CEST 2020


No need to compute it ourselves.
---
 modules/hw/vdpau/display.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/hw/vdpau/display.c b/modules/hw/vdpau/display.c
index 31e06cc2399..e231c0cdba8 100644
--- a/modules/hw/vdpau/display.c
+++ b/modules/hw/vdpau/display.c
@@ -423,15 +423,14 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
             pix, screen->black_pixel, pix, screen->black_pixel,
             XCB_EVENT_MASK_VISIBILITY_CHANGE, screen->default_colormap
         };
-        vout_display_place_t place;
+        const vout_display_place_t *place = vd->place;
 
-        vout_display_PlacePicture(&place, &vd->source, cfg, VOUT_ORIGIN_TOP_LEFT);
         sys->window = xcb_generate_id(sys->conn);
 
         xcb_void_cookie_t c =
             xcb_create_window_checked(sys->conn, screen->root_depth,
-                sys->window, cfg->window->handle.xid, place.x, place.y,
-                place.width, place.height, 0, XCB_WINDOW_CLASS_INPUT_OUTPUT,
+                sys->window, cfg->window->handle.xid, place->x, place->y,
+                place->width, place->height, 0, XCB_WINDOW_CLASS_INPUT_OUTPUT,
                 screen->root_visual, mask, values);
         if (vlc_xcb_error_Check(vd, sys->conn, "window creation failure", c))
             goto error;
-- 
2.26.2



More information about the vlc-devel mailing list