summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2018-02-09 19:01:22 +0000
committerJan Ekström <jeebjp@gmail.com>2018-02-09 21:16:14 +0200
commit6161cfd781974f8471b9ab99016db1d8bb8d33e7 (patch)
tree3be98209b9f4360fac5b5a4384b5ae6965eb2042
parentb01623e0d233f6f326523aee6b82ed06346b229a (diff)
downloadmpv-6161cfd781974f8471b9ab99016db1d8bb8d33e7.tar.bz2
mpv-6161cfd781974f8471b9ab99016db1d8bb8d33e7.tar.xz
wayland_common: fix idle_inhibitor protocol segfault
The pointer is used as a state and wasn't zeroed after seeks.
-rw-r--r--video/out/wayland_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 19adf01df0..f1e4091b04 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -1198,6 +1198,7 @@ static int set_screensaver_inhibitor(struct vo_wayland_state *wl, int state)
} else {
MP_VERBOSE(wl, "Disabling the idle inhibitor\n");
zwp_idle_inhibitor_v1_destroy(wl->idle_inhibitor);
+ wl->idle_inhibitor = NULL;
}
return VO_TRUE;
}