From ccce813a92b3bdc1b8cd42b0fc5ca42e8e491d5a Mon Sep 17 00:00:00 2001 From: Aaron Boxer Date: Wed, 15 Jun 2022 13:32:50 -0400 Subject: vo_vaapi_wayland: remove unnecessary subsurface sync/desync in resize resize only changes subsurface position, which is always synchronized with the parent surface. For reference, see : https://wayland-book.com/surfaces-in-depth/subsurfaces.html --- video/out/vo_vaapi_wayland.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'video/out') diff --git a/video/out/vo_vaapi_wayland.c b/video/out/vo_vaapi_wayland.c index 30f24332b9..e5197ebb01 100644 --- a/video/out/vo_vaapi_wayland.c +++ b/video/out/vo_vaapi_wayland.c @@ -318,7 +318,6 @@ static int resize(struct vo *vo) struct vo_wayland_state *wl = vo->wl; struct priv *p = vo->priv; - wl_subsurface_set_sync(wl->video_subsurface); vo_wayland_set_opaque_region(wl, 0); const int width = wl->scaling * mp_rect_w(wl->geometry); const int height = wl->scaling * mp_rect_h(wl->geometry); @@ -334,7 +333,6 @@ static int resize(struct vo *vo) wl_subsurface_set_position(wl->video_subsurface, p->dst.x0, p->dst.y0); vo->want_redraw = true; - wl_subsurface_set_desync(wl->video_subsurface); return VO_TRUE; } -- cgit v1.2.3