diff options
author | Dudemanguy <random342@airmail.cc> | 2020-05-18 10:54:18 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2020-05-18 11:01:40 -0500 |
commit | 55f6ba62bedfe177701d46ef09afde69ca5ab0eb (patch) | |
tree | ebc9d8d8a0388602df72c8d810973fc825045cd3 /video/out | |
parent | 82ded968aae9e4141d6b25791546b9f92e3c20d1 (diff) | |
download | mpv-55f6ba62bedfe177701d46ef09afde69ca5ab0eb.tar.bz2 mpv-55f6ba62bedfe177701d46ef09afde69ca5ab0eb.tar.xz |
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.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/wayland_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index f5adc7a15a..3995db3270 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -829,8 +829,8 @@ static void pres_set_clockid(void *data, struct wp_presentation *pres, { struct vo_wayland_state *wl = data; - wl->presentation = pres; - clockid = CLOCK_MONOTONIC; + if (clockid == CLOCK_MONOTONIC) + wl->presentation = pres; } static const struct wp_presentation_listener pres_listener = { |