mirror of https://github.com/mpv-player/mpv
wayland: only use presentation on CLOCK_MONOTONIC
Trying to use anything other than CLOCK_MONOTONIC here would be a disaster. No idea if it's even possible for the clockid here to be something other than CLOCK_MONOTONIC in this function but it's better safe than sorry. Closes #7740.
This commit is contained in:
parent
82ded968aa
commit
55f6ba62be
|
@ -829,8 +829,8 @@ static void pres_set_clockid(void *data, struct wp_presentation *pres,
|
||||||
{
|
{
|
||||||
struct vo_wayland_state *wl = data;
|
struct vo_wayland_state *wl = data;
|
||||||
|
|
||||||
|
if (clockid == CLOCK_MONOTONIC)
|
||||||
wl->presentation = pres;
|
wl->presentation = pres;
|
||||||
clockid = CLOCK_MONOTONIC;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct wp_presentation_listener pres_listener = {
|
static const struct wp_presentation_listener pres_listener = {
|
||||||
|
|
Loading…
Reference in New Issue