summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-10-22 04:31:36 +0200
committerDudemanguy <random342@airmail.cc>2023-10-26 16:49:38 +0000
commit34d99840a5cee8907cf4b2528efb1670a8f51744 (patch)
tree4b1f1847c9f81eb650d29cb519a44ed5d3d9e404 /video/out/wayland_common.c
parent032b7de97f1c8c28358a96e9ecfac87d6621a4fb (diff)
downloadmpv-34d99840a5cee8907cf4b2528efb1670a8f51744.tar.bz2
mpv-34d99840a5cee8907cf4b2528efb1670a8f51744.tar.xz
timer: use MP_TIME macros
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r--video/out/wayland_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index d5ab2fe1c9..144ff78284 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -1157,7 +1157,7 @@ static void feedback_presented(void *data, struct wp_presentation_feedback *fbac
// - these values are updated every time the compositor receives feedback.
int64_t sec = (uint64_t) tv_sec_lo + ((uint64_t) tv_sec_hi << 32);
- int64_t ust = sec * UINT64_C(1000000000) + (uint64_t) tv_nsec;
+ int64_t ust = MP_TIME_S_TO_NS(sec) + (uint64_t) tv_nsec;
int64_t msc = (uint64_t) seq_lo + ((uint64_t) seq_hi << 32);
present_update_sync_values(wl->present, ust, msc);
}