1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00

wayland_common: fix idle_inhibitor protocol segfault

The pointer is used as a state and wasn't zeroed after seeks.
This commit is contained in:
Rostislav Pehlivanov 2018-02-09 19:01:22 +00:00 committed by Jan Ekström
parent b01623e0d2
commit 6161cfd781

View File

@ -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;
}