From c961f4d0dbea51d6a0c74725eadd65d21a4701bf Mon Sep 17 00:00:00 2001 From: Aaron Boxer Date: Wed, 15 Jun 2022 13:40:34 -0400 Subject: vo_vaapi_wayland: only attach solid buffer once to main surface, on creation There's no need to attach it with each frame. --- video/out/vo_vaapi_wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out') diff --git a/video/out/vo_vaapi_wayland.c b/video/out/vo_vaapi_wayland.c index e5197ebb01..44b438e94c 100644 --- a/video/out/vo_vaapi_wayland.c +++ b/video/out/vo_vaapi_wayland.c @@ -305,6 +305,7 @@ static int reconfig(struct vo *vo, struct mp_image_params *params) WL_SHM_FORMAT_XRGB8888); if (!p->solid_buffer) return VO_ERROR; + wl_surface_attach(wl->surface, p->solid_buffer, 0, 0); } if (!vo_wayland_reconfig(vo)) @@ -374,7 +375,6 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame) if (!entry) return; - wl_surface_attach(wl->surface, p->solid_buffer, 0, 0); wl_surface_attach(wl->video_surface, entry->buffer, 0, 0); wl_surface_damage_buffer(wl->video_surface, 0, 0, INT32_MAX, INT32_MAX); wl_surface_commit(wl->video_surface); -- cgit v1.2.3