diff options
author | Dudemanguy <random342@airmail.cc> | 2023-09-17 19:45:21 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-10-10 19:10:55 +0000 |
commit | ae335ef155d03c9d65914499e2dc2baca71d0381 (patch) | |
tree | d035c9bda5fbf9ecb90af20f270be13b9459ac5d /video/out/vo.c | |
parent | 2016e902e19d8b48a8aa4a69c06fe58f3d31916f (diff) | |
download | mpv-ae335ef155d03c9d65914499e2dc2baca71d0381.tar.bz2 mpv-ae335ef155d03c9d65914499e2dc2baca71d0381.tar.xz |
vo: remove vo_get_estimated_vsync_interval conversion to seconds
This is weird. The caller should be responsible for converting the value
if desired. Move the conversion to player/command.c instead.
Diffstat (limited to 'video/out/vo.c')
-rw-r--r-- | video/out/vo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/vo.c b/video/out/vo.c index 669595f1ce..496f01f45e 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -1261,12 +1261,11 @@ double vo_get_vsync_interval(struct vo *vo) return res; } -// Returns duration of a display refresh in seconds. double vo_get_estimated_vsync_interval(struct vo *vo) { struct vo_internal *in = vo->in; pthread_mutex_lock(&in->lock); - double res = in->estimated_vsync_interval / 1e9; + double res = in->estimated_vsync_interval; pthread_mutex_unlock(&in->lock); return res; } |