summaryrefslogtreecommitdiffstats
path: root/player/lua
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2022-10-04 11:05:00 -0500
committerDudemanguy <random342@airmail.cc>2022-10-06 18:08:51 +0000
commitd2a0791fe83d8382e06232e72549cab4e4c66130 (patch)
treeae253cf7a653c5940f99649475cb5b4f10f9e59c /player/lua
parent7f5541fc3c440a4aa5fdec2899c02d1caf7fb227 (diff)
downloadmpv-d2a0791fe83d8382e06232e72549cab4e4c66130.tar.bz2
mpv-d2a0791fe83d8382e06232e72549cab4e4c66130.tar.xz
wayland: correctly handle non-CLOCK_MONOTONIC clocks
The wayland presentation time code currently always assumes that only CLOCK_MONOTONIC can be used. There is a naive attempt to ignore clocks other than CLOCK_MONOTONIC, but the logic is actually totally wrong and the timestamps would be used anyway. Fix this by checking a use_present bool (similar to use_present in xorg) which is set to true if we receive a valid clock in the clockid event. Additionally, allow CLOCK_MONOTONIC_RAW as a valid clockid. In practice, it should be the same as CLOCK_MONOTONIC for us (ntp/adjustime difference wouldn't matter). Since this is a linux-specific clock, add a define for it if it is not found.
Diffstat (limited to 'player/lua')
0 files changed, 0 insertions, 0 deletions