1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 23:32:26 +00:00
mpv/player
wm4 5ed7bc6321 video: fix and simplify video format changes and last frame display
The previous commit broke these things, and fixing them is separate in
this commit in order to reduce the volume of changes.

Move the image queue from the VO to the playback core. The image queue
is a remnant of the old way how vdpau was implemented, and increasingly
became more and more an artifact. In the end, it did only one thing:
computing the duration of the current frame. This was done by taking the
PTS difference between the current and the future frame. We keep this,
but by moving it out of the VO, we don't have to special-case format
changes anymore. This simplifies the code a lot.

Since we need the queue to compute the duration only, a queue size
larger than 2 makes no sense, and we can hardcode that.

Also change how the last frame is handled. The last frame is a bit of a
problem, because video timing works by showing one frame after another,
which makes it a special case. Make the VO provide a function to notify
us when the frame is done, instead. The frame duration is used for that.

This is not perfect. For example, changing playback speed during the
last frame doesn't update the end time. Pausing will not stop the clock
that times the last frame. But I don't think this matters for such a
corner case.
2014-08-12 23:24:08 +02:00
..
lua osc: Do precise seeks on simple clicks on seekbar 2014-07-29 19:26:32 +02:00
timeline demux: make start time a simple field 2014-07-05 17:07:15 +02:00
audio.c audio: fix inverted condition 2014-08-06 20:30:46 +02:00
client.c client API: minor optimizations for property notification 2014-08-02 01:53:22 +02:00
client.h client API: minor optimizations for property notification 2014-08-02 01:53:22 +02:00
command.c command: for OSD, format cache property as integer 2014-08-11 13:30:08 +02:00
command.h client API: minor optimizations for property notification 2014-08-02 01:53:22 +02:00
configfiles.c Revert "Remove DVD and Bluray support" 2014-07-15 01:49:02 +02:00
core.h video: fix and simplify video format changes and last frame display 2014-08-12 23:24:08 +02:00
discnav.c demux: add a demuxer thread 2014-07-16 23:25:56 +02:00
loadfile.c video: fix and simplify video format changes and last frame display 2014-08-12 23:24:08 +02:00
lua.c command: add a property that returns a list of all properties 2014-08-02 01:53:21 +02:00
main_fn.c cocoa: fix build by using the correct HAVE_* macro 2014-08-06 09:31:59 +02:00
main.c cocoa: fix build by using the correct HAVE_* macro 2014-08-06 09:31:59 +02:00
misc.c video: move display and timing to a separate thread 2014-08-12 23:24:08 +02:00
osd.c player: remove cache status from video OSD 2014-08-11 17:01:20 +02:00
playloop.c video: fix and simplify video format changes and last frame display 2014-08-12 23:24:08 +02:00
screenshot.c video: move display and timing to a separate thread 2014-08-12 23:24:08 +02:00
screenshot.h
scripting.c build: include <strings.h> for strcasecmp() 2014-07-10 08:29:32 +02:00
sub.c sub: fix subtitle timing for TS 2014-08-04 18:17:30 +02:00
video.c video: fix and simplify video format changes and last frame display 2014-08-12 23:24:08 +02:00