diff options
author | wm4 <wm4@nowhere> | 2018-05-17 13:16:26 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2018-05-25 10:53:47 +0200 |
commit | 9fe4e10c7dfb7591adc39d0f0b77f4bae54fbc14 (patch) | |
tree | 1f5604a6542cfcbc57fb054d95d3b38e65281eea /player/javascript | |
parent | a832624af981e52711fd668f89de0a9173fd5c60 (diff) | |
download | mpv-9fe4e10c7dfb7591adc39d0f0b77f4bae54fbc14.tar.bz2 mpv-9fe4e10c7dfb7591adc39d0f0b77f4bae54fbc14.tar.xz |
player: use canonical playback time for video refreshes
When changing video filters during initialization, there was a small
time window where video was initialized, but playback restart was not
complete yet. In this time window, playback_pts is not set. But since
issue_refresh_seek() was using this, it could lead to no refresh being
done _if_ the "video" had only 1 frame (such as cover art).
Fix this by using get_current_time() instead, which is the current time
with corner cases such as ongoing loading or seeks taken into account.
See also the previous commit. Without that, get_current_time() could
return NOPTS during init.
Fixes #5831.
Diffstat (limited to 'player/javascript')
0 files changed, 0 insertions, 0 deletions