[vlc-devel] [PATCH 06/20] vdpau/display: use the picture placement from the core on open
Steve Lhomme
robux4 at ycbcr.xyz
Tue Aug 25 09:29:54 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 3f4ce81b276..4eb937c00d8 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);
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