mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 15:11:09 +08:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user