From 33130741f45ac8d40a407da28788e77bc569f823 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Wed, 12 Jul 2023 22:20:20 -0500 Subject: vo_dmabuf_wayland: guard in destroy_osd_buffers *sigh* --- video/out/vo_dmabuf_wayland.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'video') 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); -- cgit v1.2.3