1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00
mpv/player
wm4 70e76eb80a stream: redo buffer handling and allow arbitrary size for stream_peek()
struct stream used to include the stream buffer, including peek buffer,
inline in the struct. It could not be resized, which means the maximum
peek size was set in stone. This meant demux_lavf.c could peek only so
much data.

Change it to use a dynamic buffer. Because it's possible, keep the
inline buffer for default buffer sizes (which are basically always used
outside of file opening). It's unknown whether it really helps with
anything. Probably not.

This is also the fallback plan in case we need something like the old
stream cache in order to deal with mp4 + unseekable http: the code can
now be easily changed to use any buffer size.
2018-10-02 19:59:22 +02:00
..
javascript js: use new hooks API (match f60826c3) 2018-04-07 16:02:20 -07:00
lua stats: show file format 2018-09-22 11:35:32 +02:00
audio.c build: make encoding mode non-optional 2018-05-03 01:08:44 +03:00
client.c player: make playback termination asynchronous 2018-05-24 19:56:35 +02:00
client.h command: add infrastructure for async commands 2018-05-24 19:56:34 +02:00
command.c command: report unknown file size as unavailable, not -1 2018-09-15 19:09:53 +02:00
command.h command: add a way to abort asynchronous commands 2018-05-24 19:56:34 +02:00
configfiles.c demux, stream: remove unneeded crap (esp. optical discs and Linux TV) 2018-08-31 13:53:43 +02:00
core.h demux, stream: rip out the classic stream cache 2018-08-31 12:55:22 +02:00
external_files.c player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
external_files.h player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
javascript.c js: use new hooks API (match f60826c3) 2018-04-07 16:02:20 -07:00
loadfile.c stream_libarchive: remove base filename stuff 2018-09-07 21:41:52 +02:00
lua.c lua: expose mpv_abort_async_command() 2018-05-24 19:56:34 +02:00
main.c player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
misc.c stream: redo buffer handling and allow arbitrary size for stream_peek() 2018-10-02 19:59:22 +02:00
osd.c demux: simplify API for returning cache status 2018-09-07 22:26:48 +02:00
playloop.c demux: simplify API for returning cache status 2018-09-07 22:26:48 +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 player: don't cache subtitles across deselection 2018-06-30 17:15:29 +02:00
video.c video: trust container FPS early on if possible 2018-05-24 19:56:34 +02:00