1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-08 07:57:19 +00:00
mpv/player
wm4 ebe0f5d313 player: slightly refactor/simplify cache pausing logic
The underlying logic is still the same (basically pausing if the demuxer
cache underruns), but clean up the higher level logic a bit. It goes
from 3 levels of nested if statements to 1.

Also remove the code duplication for the --cache-pause-initial logic.

In addition, make sure an earlier buffering state has no influence on
the new state after a seek (this is also why some of the state resetting
can be removed from loadfile.c).

Initialize cache_buffer always to 100. It basically means we start out
assuming all buffers are filled enough. This actually matters for
verbose messages only, but removes some weird special casing.
2018-01-07 05:03:15 -08:00
..
javascript js: implement mp.msg.trace() 2017-12-16 02:25:24 -08:00
lua ytdl_hook: check for possible infinite loop in playlist generation 2018-01-06 18:43:46 +00:00
audio.c options: drop some previously deprecated options 2017-12-25 04:06:17 -07:00
client.c client: Allow "C.UTF-8" as LC_NUMERIC locale 2017-11-30 21:06:37 +02:00
client.h
command.c demux: export some debugging fields about low level demuxer behavior 2018-01-05 18:34:29 -08:00
command.h player: update duration based on highest timestamp demuxed 2017-12-24 21:49:12 +01:00
configfiles.c
core.h player: strictly never autoselect tracks from --external-files 2018-01-06 14:42:22 -08:00
external_files.c player: make track language matching case insensitive 2017-12-23 15:14:13 -07:00
external_files.h
javascript.c lua+js: implement utils.file_info() 2017-12-13 21:55:28 +02:00
lavfi.c lavfi: fix warnings with newer libavfilter versions 2017-10-27 18:09:08 +02:00
lavfi.h audio: introduce a new type to hold audio frames 2017-08-16 21:10:54 +02:00
loadfile.c player: slightly refactor/simplify cache pausing logic 2018-01-07 05:03:15 -08:00
lua.c msg: reinterpret a bunch of message levels 2017-12-15 22:28:47 -08:00
main.c build: move copyright statement to a shared location 2018-01-01 21:05:09 +00:00
misc.c options: move most subtitle and OSD rendering options to sub structs 2018-01-02 14:27:37 -08:00
osd.c player: show demuxer cache buffered amount in bytes in the status line 2017-12-23 00:32:59 +01:00
playloop.c player: slightly refactor/simplify cache pausing logic 2018-01-07 05:03:15 -08:00
screenshot.c screenshot: create directories from template 2017-11-02 17:07:35 +01:00
screenshot.h
scripting.c msg: reinterpret a bunch of message levels 2017-12-15 22:28:47 -08:00
sub.c sub: move all subtitle timestamp messing code to a central place 2018-01-02 14:27:37 -08:00
video.c msg: reinterpret a bunch of message levels 2017-12-15 22:28:47 -08:00