vo_dmabuf_wayland: guard in destroy_osd_buffers

*sigh*
This commit is contained in:
Dudemanguy 2023-07-12 22:20:20 -05:00
parent 7409f4a6c9
commit 33130741f4
1 changed files with 3 additions and 0 deletions

View File

@ -333,6 +333,9 @@ static void destroy_buffers(struct vo *vo)
static void destroy_osd_buffers(struct vo *vo)
{
if (!vo->wl)
return;
// Remove any existing buffer before we destroy them.
wl_surface_attach(vo->wl->osd_surface, NULL, 0, 0);
wl_surface_commit(vo->wl->osd_surface);