From 6161cfd781974f8471b9ab99016db1d8bb8d33e7 Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Fri, 9 Feb 2018 19:01:22 +0000 Subject: wayland_common: fix idle_inhibitor protocol segfault The pointer is used as a state and wasn't zeroed after seeks. --- video/out/wayland_common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out/wayland_common.c') 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; } -- cgit v1.2.3