summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-10-07 21:49:03 +0200
committerNiklas Haas <git@haasn.xyz>2017-10-07 21:49:03 +0200
commit2c046c48ec677abf59a235b3595387726c04b9e6 (patch)
tree07fcdcff7eec377360f08077e7c873cfab5c1eb8 /video
parent9c806bc299b25210d96a8cc9b2acf3b08d2d7936 (diff)
downloadmpv-2c046c48ec677abf59a235b3595387726c04b9e6.tar.bz2
mpv-2c046c48ec677abf59a235b3595387726c04b9e6.tar.xz
wayland_common: allow vo_wayland_uninit(NULL)
...again
Diffstat (limited to 'video')
-rw-r--r--video/out/wayland_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 83b1e82970..e2d2016546 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -987,6 +987,8 @@ int vo_wayland_init(struct vo *vo)
void vo_wayland_uninit(struct vo *vo)
{
struct vo_wayland_state *wl = vo->wl;
+ if (!wl)
+ return;
if (wl->cursor_theme)
wl_cursor_theme_destroy(wl->cursor_theme);