vo: change vsync base to nanoseconds

There is no reason to use microseconds precision. We have precise timers
all all relevant platforms.
This commit is contained in:
Kacper Michajłow
2023-09-16 04:45:24 +02:00
committed by Dudemanguy
parent cdfd5c280a
commit df764bc0c3
9 changed files with 41 additions and 40 deletions

View File

@@ -835,7 +835,7 @@ static void handle_display_sync_frame(struct MPContext *mpctx,
if (resample && using_spdif_passthrough(mpctx))
return;
double vsync = vo_get_vsync_interval(vo) / 1e6;
double vsync = vo_get_vsync_interval(vo) / 1e9;
if (vsync <= 0)
return;