1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-21 18:57:35 +00:00
mpv/demux
Dudemanguy 0286e7f206 demux: always update the cache on init
cd59ea8afa removed an arbitrary start
offset added to the timer. However, it turns out that demux secretly
depends on this. When updating cache to actually read bytes from the
stream, there's a diff >= MP_TIME_S_TO_NS(1) check to make it only
update once every second. With the old MP_START_TIME macro, the initial
time value would always be at least 1e10, so this would also be true.
Since we don't have that offset anymore, now the initial time is less
than that so it is not updated and properties like file-size are 0. Just
be sure to always update if the last_speed_query is 0 (i.e. we just
started the player). Fixes #12869.
2023-11-12 11:47:16 +01:00
..
cache.c demux: prepend some cache options with demuxer 2023-09-18 17:13:15 +00:00
cache.h
codec_tags.c various: remove trailing whitespace 2023-10-30 16:45:47 +00:00
codec_tags.h demux_mkv: check if the video codec is an image 2023-10-23 19:32:53 +00:00
cue.c
cue.h
demux_cue.c demux_cue: deprecate --demuxer-cue-codepage for --metadata-codepage 2023-10-07 02:41:27 +00:00
demux_disc.c Revert "demux: improve stream selection state" 2023-09-30 09:02:57 -05:00
demux_edl.c
demux_lavf.c demux/lavf: don't use deprecated side data 2023-11-09 21:30:50 +00:00
demux_libarchive.c options: transition options from OPT_FLAG to OPT_BOOL 2023-02-21 17:15:17 +00:00
demux_mf.c demux: put type2format into codec_tags with helper functions 2023-10-23 19:32:53 +00:00
demux_mkv_timeline.c
demux_mkv.c ALL: use pl_hdr_metadata and nuke sig_peak 2023-11-05 18:57:36 +01:00
demux_null.c
demux_playlist.c demux_playlist: use --metacode-codepage when parsing playlist files 2023-10-07 02:41:27 +00:00
demux_raw.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00
demux_timeline.c Revert "demux: improve stream selection state" 2023-09-30 09:02:57 -05:00
demux.c demux: always update the cache on init 2023-11-12 11:47:16 +01:00
demux.h Revert "demux: improve stream selection state" 2023-09-30 09:02:57 -05:00
ebml.c build: remove outdated generated directory 2023-07-31 19:00:06 +00:00
ebml.h build: remove outdated generated directory 2023-07-31 19:00:06 +00:00
matroska.h
packet.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00
packet.h
stheader.h demux: add crop to mp_codec_params 2023-09-17 16:48:42 +00:00
timeline.c
timeline.h various: add missing include in header flles 2023-09-21 14:40:11 +00:00