mpv/player
Kacper Michajłow 08c12a28b3 player/video: fix calculation of ideal_frame_vsync_duration
During move of this code from vo_gpu_next.c to video.c someone(TM) tried
to be smart and simplify the expression. The num_vsync includes error
compensation which can cause it to display +-1 vsync at the same rate.
We explicitly don't want to include this in "ideal" parameters.

Also num_vsyncs was already rounded so we produced off timings in
general.

Revert back to proper way of translating the time.

Fixes: 5e5a325
2023-11-12 20:22:26 +00:00
..
javascript build: remove outdated generated directory 2023-07-31 19:00:06 +00:00
lua console: fix crash for long suggestion strings 2023-11-11 20:43:02 +00:00
audio.c player/audio: fix incorrect check on adding delay 2023-10-26 22:59:09 -05:00
client.c mp_thread: prefer tracking threads with id 2023-11-05 17:36:17 +00:00
client.h scripting: remove race condition when toggling internal scripts 2020-03-26 23:59:44 +01:00
command.c player/command: make show-progress work regardless of osd prefix 2023-11-09 21:32:35 +00:00
command.h various: add missing include in header flles 2023-09-21 14:40:11 +00:00
configfiles.c options: rename --watch-later-directory to --watch-later-dir 2023-10-25 16:16:37 +00:00
core.h ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
external_files.c external_files: remove duplicate from cover art whitelist 2023-10-04 15:31:38 +00:00
external_files.h player: make all autoload extensions configurable 2023-08-26 00:33:00 +00:00
javascript.c scripting: rename backend names for concise naming 2023-10-27 23:18:56 +00:00
loadfile.c player/loadfile: remove blank line on exit 2023-11-08 21:55:08 +00:00
lua.c scripting: rename backend names for concise naming 2023-10-27 23:18:56 +00:00
main.c ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
meson.build build: remove outdated generated directory 2023-07-31 19:00:06 +00:00
misc.c vo_wayland: fix warning -Wvoid-pointer-to-enum-cast 2023-02-26 16:45:07 +01:00
osd.c Revert "player: cut off status line on terminal width" 2023-11-08 21:55:08 +00:00
playloop.c dispatch: change mp_dispatch_queue_process timer to nanoseconds 2023-10-16 15:38:59 +00:00
screenshot.c mp_thread: add win32 implementation 2023-11-05 17:36:17 +00:00
screenshot.h player: make screenshot each-frame mode more accurate 2020-02-07 13:32:21 +01:00
scripting.c mp_thread: prefer tracking threads with id 2023-11-05 17:36:17 +00:00
sub.c sub: update subtitles if current track is an image 2023-10-23 19:32:53 +00:00
video.c player/video: fix calculation of ideal_frame_vsync_duration 2023-11-12 20:22:26 +00:00