summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r--video/out/wayland_common.c4
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 = {