mpv/player
wm4 ec7d1e86b6 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.
2018-05-24 19:56:34 +02:00
..
javascript js: use new hooks API (match f60826c3) 2018-04-07 16:02:20 -07:00
lua lua: expose mpv_abort_async_command() 2018-05-24 19:56:34 +02:00
audio.c build: make encoding mode non-optional 2018-05-03 01:08:44 +03:00
client.c client API: kill async commands on termination 2018-05-24 19:56:34 +02:00
client.h command: add infrastructure for async commands 2018-05-24 19:56:34 +02:00
command.c command: make "subprocess" explicitly abortable 2018-05-24 19:56:34 +02:00
command.h command: add a way to abort asynchronous commands 2018-05-24 19:56:34 +02:00
configfiles.c player: silence config file loading message on resuming 2018-01-13 03:26:45 -08:00
core.h client API: kill async commands on termination 2018-05-24 19:56:34 +02:00
external_files.c player: make track language matching case insensitive 2017-12-23 15:14:13 -07:00
external_files.h external_files: change license to LGPL 2017-06-20 14:22:10 +02:00
javascript.c js: use new hooks API (match f60826c3) 2018-04-07 16:02:20 -07:00
loadfile.c player: don't reset last_seek_pts on playback state reset 2018-05-24 19:56:34 +02:00
lua.c lua: expose mpv_abort_async_command() 2018-05-24 19:56:34 +02:00
main.c command: add a way to abort asynchronous commands 2018-05-24 19:56:34 +02:00
misc.c player: use canonical playback time for video refreshes 2018-05-24 19:56:34 +02:00
osd.c build: make encoding mode non-optional 2018-05-03 01:08:44 +03:00
playloop.c player: don't reset last_seek_pts on playback state reset 2018-05-24 19:56:34 +02:00
screenshot.c command: add a way to abort asynchronous commands 2018-05-24 19:56:34 +02:00
screenshot.h command: move screenshot command stubs to screenshot.c 2018-05-24 19:56:34 +02:00
scripting.c scripting: change when/how player waits for scripts being loaded 2018-04-18 01:17:41 +03:00
sub.c video: make decoder wrapper a filter 2018-01-30 03:10:27 -08:00
video.c video: trust container FPS early on if possible 2018-05-24 19:56:34 +02:00