diff options
author | Aaron Boxer <boxerab@protonmail.com> | 2022-06-15 13:32:50 -0400 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2022-06-15 20:54:34 +0000 |
commit | ccce813a92b3bdc1b8cd42b0fc5ca42e8e491d5a (patch) | |
tree | aea73592bc83376872717c0df04fc0bd8cab49de /video/out | |
parent | 1e1956e15bccedbe0471ac7d23b154b17dca6e68 (diff) | |
download | mpv-ccce813a92b3bdc1b8cd42b0fc5ca42e8e491d5a.tar.bz2 mpv-ccce813a92b3bdc1b8cd42b0fc5ca42e8e491d5a.tar.xz |
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
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/vo_vaapi_wayland.c | 2 |
1 files changed, 0 insertions, 2 deletions
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; } |