summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorAaron Boxer <boxerab@protonmail.com>2022-06-15 13:40:34 -0400
committerDudemanguy <random342@airmail.cc>2022-06-15 20:54:34 +0000
commitc961f4d0dbea51d6a0c74725eadd65d21a4701bf (patch)
treed7038b9de5037a5439adf60d1384dd3af0f081ef /video/out
parentccce813a92b3bdc1b8cd42b0fc5ca42e8e491d5a (diff)
downloadmpv-c961f4d0dbea51d6a0c74725eadd65d21a4701bf.tar.bz2
mpv-c961f4d0dbea51d6a0c74725eadd65d21a4701bf.tar.xz
vo_vaapi_wayland: only attach solid buffer once to main surface, on creation
There's no need to attach it with each frame.
Diffstat (limited to 'video/out')
-rw-r--r--video/out/vo_vaapi_wayland.c2
1 files changed, 1 insertions, 1 deletions
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);