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:
Dudemanguy 2020-05-18 10:54:18 -05:00
parent 82ded968aa
commit 55f6ba62be
1 changed files with 2 additions and 2 deletions

View File

@ -829,8 +829,8 @@ static void pres_set_clockid(void *data, struct wp_presentation *pres,
{
struct vo_wayland_state *wl = data;
if (clockid == CLOCK_MONOTONIC)
wl->presentation = pres;
clockid = CLOCK_MONOTONIC;
}
static const struct wp_presentation_listener pres_listener = {