mirror of
https://github.com/mpv-player/mpv
synced 2025-01-19 13:51:14 +00:00
vo_dmabuf_wayland: guard in destroy_osd_buffers
*sigh*
This commit is contained in:
parent
7409f4a6c9
commit
33130741f4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user