1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 09:32:40 +00:00
mpv/demux
wm4 debf57bb0d demux: report correct cache state close to EOF
On EOF, this stopped reporting the actual cache duration, and just
signalled unknown duration. Fix this and keep reporting whatever is left
in the packet queue.

This reverts commit 5438a8b3. The commit doesn't give a good explanation
as to why it is needed, but I guess it was because the reporting was
imperfect (it switched between unknown or 0, and the correct duration).

This also removes a line added in commit 848546f2. The line is

    ds->active = false;

The "active" flag basically says that data from this stream is actively
needed, and it's used to calculate the minimum data that can actually be
played (approximately). If this were ignored, a sparse subtitle stream
would set the cache duration to 0s. The commit message adding the line
says "actually does nothing, but in theory it's cleaner". Well, screw
it.
2015-04-20 22:53:33 +02:00
..
codec_tags.c Remove some FFmpeg/Libav compatibility hacks 2015-03-03 12:28:46 +01:00
codec_tags.h demux_mkv: support embedded coverart 2014-12-22 12:53:51 +01:00
demux_cue.c Update license headers 2015-04-13 12:10:01 +02:00
demux_disc.c demux: change demux_open() signature 2015-02-20 21:21:14 +01:00
demux_edl.c Update license headers 2015-04-13 12:10:01 +02:00
demux_lavf.c player: change video-bitrate and audio-bitrate properties 2015-04-20 20:52:16 +02:00
demux_libass.c player: enable cache and demuxer thread for subtitles too 2015-02-18 21:12:57 +01:00
demux_mf.c Update license headers 2015-04-13 12:10:01 +02:00
demux_mkv_timeline.c Update license headers 2015-04-13 12:10:01 +02:00
demux_mkv.c Update license headers 2015-04-13 12:10:01 +02:00
demux_playlist.c player: allow playing directories 2015-04-17 23:02:14 +02:00
demux_rar.c demux: fix rar support for files containing DTS audio tracks 2015-03-24 21:29:09 +01:00
demux_raw.c player: change video-bitrate and audio-bitrate properties 2015-04-20 20:52:16 +02:00
demux_subreader.c Update license headers 2015-04-13 12:10:01 +02:00
demux_tv.c audio: decouple demux and audio decoder/filter sample formats 2014-09-24 22:55:50 +02:00
demux.c demux: report correct cache state close to EOF 2015-04-20 22:53:33 +02:00
demux.h Update license headers 2015-04-13 12:10:01 +02:00
ebml.c Update license headers 2015-04-13 12:10:01 +02:00
ebml.h Update license headers 2015-04-13 12:10:01 +02:00
matroska.h Update license headers 2015-04-13 12:10:01 +02:00
packet.c demux_mkv: refactor packet parsing 2015-02-05 21:52:07 +01:00
packet.h Update license headers 2015-04-13 12:10:01 +02:00
stheader.h player: change video-bitrate and audio-bitrate properties 2015-04-20 20:52:16 +02:00
timeline.c demux: timeline: honor quit requests 2015-02-20 22:08:02 +01:00
timeline.h demux: timeline: honor quit requests 2015-02-20 22:08:02 +01:00