0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00
mpv/stream
wm4 3486f59fe2 core: automatically pause on low cache
When the cache fill status goes below a certain threshold, automatically
pause the player. When the cache is filled again, unpause again.

This is intended to help with streaming from http. It's better to pause
a while, rather than exposing extremely crappy behavior when packet
reads during decoding block the entire player.

In theory, we should try to increase the cache if underruns happen too
often. Unfortunately, changing the cache implementation would be very
hard, because it's insane code (forks, uses shared memory and "volatile"
etc.). So for now, this just reduces the frequency of the stuttering if
the network is absolutely too slow to play the stream in realtime.
2012-12-03 21:08:52 +01:00
..
ai_alsa1x.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
ai_oss.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
asf_mmst_streaming.c cache: simplify further 2012-12-03 21:08:51 +01:00
asf_mmst_streaming.h Add header for asf_mmst_streaming_start() instead of forward declaring it. 2010-02-21 23:26:16 +00:00
asf_streaming.c cache: simplify further 2012-12-03 21:08:51 +01:00
audio_in.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
audio_in.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
cache2.c core: automatically pause on low cache 2012-12-03 21:08:52 +01:00
cache2.h cache: simplify further 2012-12-03 21:08:51 +01:00
cdd.h stream_cddb: move structs to the file they're used in 2010-11-02 04:11:07 +02:00
cdinfo.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
cookies.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
cookies.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
dvb_tune.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
dvb_tune.h Add header for exported DVB-related functions. 2010-02-21 21:00:08 +00:00
dvbin.h stream/dvbin.h: Use angular brackets for system #includes. 2010-11-02 04:11:07 +02:00
frequencies.c Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
frequencies.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
http.c stream_lavf: use ffmpeg for http/https streaming 2012-12-03 21:08:52 +01:00
http.h stream/: delete base64_encode(), use libavutil av_base64_encode() 2010-12-16 05:16:50 +02:00
network.c cache: refactor how cache enabling is done 2012-12-03 21:08:51 +01:00
network.h cache: refactor how cache enabling is done 2012-12-03 21:08:51 +01:00
pvr.h Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
stream_avdevice.c demux_lavf: add support for libavdevice 2012-12-03 21:08:51 +01:00
stream_bluray.c stream: fix dvd:// + cache crashing 2012-11-20 18:00:15 +01:00
stream_cdda.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
stream_cddb.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_dvb.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_dvd_common.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_dvd_common.h Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
stream_dvd.c stream: fix dvd:// + cache crashing 2012-11-20 18:00:15 +01:00
stream_dvd.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_file.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
stream_ftp.c stream_ftp: fix compilation with libav 2012-11-22 00:05:53 +01:00
stream_lavf.c stream_lavf: use ffmpeg for http/https streaming 2012-12-03 21:08:52 +01:00
stream_mf.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_netstream.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
stream_netstream.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_null.c Add license header to all files missing it in the stream subdirectory. 2010-01-30 22:26:47 +00:00
stream_pvr.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_radio.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_radio.h Drop pointless _st suffix from 'struct stream'. 2010-05-27 20:38:25 +00:00
stream_smb.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
stream_tv.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_udp.c cache: simplify further 2012-12-03 21:08:51 +01:00
stream_vcd.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
stream_vstream.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
stream.c cache: simplify further 2012-12-03 21:08:51 +01:00
stream.h core: automatically pause on low cache 2012-12-03 21:08:52 +01:00
tcp.c Fix potential bugs and issues, general cleanups 2012-11-20 18:00:14 +01:00
tcp.h Use standard license headers with standard formatting. 2008-05-14 17:20:42 +00:00
tv.c Fix potential bugs and issues, general cleanups 2012-11-20 18:00:14 +01:00
tv.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
tvi_bsdbt848.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
tvi_def.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
tvi_dummy.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
tvi_v4l2.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
udp.c Fix potential bugs and issues, general cleanups 2012-11-20 18:00:14 +01:00
udp.h Use standard license headers with standard formatting. 2008-05-14 17:20:42 +00:00
url.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
url.h stream: fix redirection for proxy URLs 2012-10-30 19:50:20 +01:00
vcd_read_darwin.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
vcd_read_fbsd.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
vcd_read_win32.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
vcd_read.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00