summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2020-08-21 22:22:10 -0500
committerDudemanguy <random342@airmail.cc>2020-08-22 20:43:49 +0000
commitb0f0be76783c443413115fe33cc7137ef21e98a8 (patch)
tree5498fecab0201e7910b08cc8fbef3e885ed3a0be /video/out/wayland_common.h
parent85f38a9765303a79650013591334e89f9047d4e7 (diff)
downloadmpv-b0f0be76783c443413115fe33cc7137ef21e98a8.tar.bz2
mpv-b0f0be76783c443413115fe33cc7137ef21e98a8.tar.xz
wayland: simplify presentation time
Why on earth did I ever bother with this dumb crap? If we do not have any presentation statistics, just set the relevant vo_sync_info values to -1 to disable it. It's much simpler than using mp deltas and trying to keep up with mpv's clock. This also appears to fix audio/video desynchronization if you start a video with the pause flag, move it out of view, and then unpause it. Technically harmless since the video wasn't even in view and putting back in view recovered it, but a quieter terminal is better.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r--video/out/wayland_common.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index 7748627b29..65f7cbf3e5 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -35,7 +35,6 @@ struct vo_wayland_sync {
int64_t ust;
int64_t msc;
int64_t sbc;
- int64_t last_mp_time;
bool filled;
};