From f629d7a2ff67902c2ac5ed1a91dd7ade5164e723 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Thu, 2 Nov 2023 16:03:03 -0500 Subject: present_sync: rename function to present_sync_update_values This had to have been a mistake. It was just confusing. --- video/out/present_sync.c | 2 +- video/out/present_sync.h | 2 +- video/out/wayland_common.c | 2 +- video/out/x11_common.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/video/out/present_sync.c b/video/out/present_sync.c index 76b3ff23eb..66ab8075a3 100644 --- a/video/out/present_sync.c +++ b/video/out/present_sync.c @@ -107,7 +107,7 @@ void present_sync_swap(struct mp_present *present) cur->queue_display_time = ust_mp_time; } -void present_update_sync_values(struct mp_present *present, int64_t ust, +void present_sync_update_values(struct mp_present *present, int64_t ust, int64_t msc) { struct mp_present_entry *cur = present->head; diff --git a/video/out/present_sync.h b/video/out/present_sync.h index 146f52166a..dac574c4d7 100644 --- a/video/out/present_sync.h +++ b/video/out/present_sync.h @@ -50,7 +50,7 @@ void present_sync_get_info(struct mp_present *present, struct vo_vsync_info *inf void present_sync_swap(struct mp_present *present); // Called anytime the backend delivers new ust/msc values. -void present_update_sync_values(struct mp_present *present, int64_t ust, +void present_sync_update_values(struct mp_present *present, int64_t ust, int64_t msc); #endif /* MP_PRESENT_SYNC_H */ diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index e0f8cde208..6fb3a0a339 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -1159,7 +1159,7 @@ static void feedback_presented(void *data, struct wp_presentation_feedback *fbac int64_t sec = (uint64_t) tv_sec_lo + ((uint64_t) tv_sec_hi << 32); 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); + present_sync_update_values(wl->present, ust, msc); } static void feedback_discarded(void *data, struct wp_presentation_feedback *fback) diff --git a/video/out/x11_common.c b/video/out/x11_common.c index a4498a60e0..f221471255 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -1328,7 +1328,7 @@ void vo_x11_check_events(struct vo *vo) if (cookie->evtype == PresentCompleteNotify) { XPresentCompleteNotifyEvent *present_event; present_event = (XPresentCompleteNotifyEvent *)cookie->data; - present_update_sync_values(x11->present, + present_sync_update_values(x11->present, present_event->ust * 1000, present_event->msc); } -- cgit v1.2.3