summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-17 13:16:26 +0200
committerwm4 <wm4@nowhere>2018-05-24 19:56:34 +0200
commitec7d1e86b60f1c684bc9778a9ce958a9ecd54735 (patch)
treea0ce50f682e3968dabcbdef8516a98443a9c2119 /video
parent4d2b3fca3b5c6e61d2ff3a22f78b1b640500808e (diff)
downloadmpv-ec7d1e86b60f1c684bc9778a9ce958a9ecd54735.tar.bz2
mpv-ec7d1e86b60f1c684bc9778a9ce958a9ecd54735.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 'video')
0 files changed, 0 insertions, 0 deletions