summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-07-12 22:20:20 -0500
committerDudemanguy <random342@airmail.cc>2023-07-12 22:20:20 -0500
commit33130741f45ac8d40a407da28788e77bc569f823 (patch)
tree40a1806d1402accd0f2fba78e819bc79390bee85 /video/out
parent7409f4a6c97c80e35dfc3055ec8cb9c29ab9b092 (diff)
downloadmpv-33130741f45ac8d40a407da28788e77bc569f823.tar.bz2
mpv-33130741f45ac8d40a407da28788e77bc569f823.tar.xz
vo_dmabuf_wayland: guard in destroy_osd_buffers
*sigh*
Diffstat (limited to 'video/out')
-rw-r--r--video/out/vo_dmabuf_wayland.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/vo_dmabuf_wayland.c b/video/out/vo_dmabuf_wayland.c
index 46fe3571a3..e46dcadb47 100644
--- a/video/out/vo_dmabuf_wayland.c
+++ b/video/out/vo_dmabuf_wayland.c
@@ -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);