mpv/stream
wm4 7163c95cfd cache: throttle wakeups
In the extreme case, reading 1 byte would wake up the cache to make the
cache thread read 1 byte. This would be extremely inefficient. This will
not normally happen in our cache implementation, but it's still present
to some lesser degree. Normally you'd set a predefined "cache too low"
boundary, after which you would restart reading. For some reason
something like this is already present using a hardcoded value
(FILL_LIMIT - I don't even know the deeper reason why this exists). So
use that to reduce wakeups.

This doesn't fix redundant wakeups on EOFs, which is especially visible
should something keep retrying reading on EOF (like in an endless loop).
2017-10-20 22:13:22 +02:00
..
ai_alsa1x.c
ai_oss.c build: simplify OSS checks and remove changes by "bugmen0t" 2017-06-22 13:17:14 +02:00
ai_sndio.c
audio_in.c
audio_in.h Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
cache.c cache: throttle wakeups 2017-10-20 22:13:22 +02:00
cache_file.c
cookies.c cookies: change license to LGPL 2017-05-11 07:29:01 +02:00
cookies.h cookies: change license to LGPL 2017-05-11 07:29:01 +02:00
dvb_tune.c dvb: Fixes for ATSC tuning. 2017-10-09 20:06:29 +02:00
dvb_tune.h dvb: add support for DVB-T2 2017-03-06 16:12:27 +01:00
dvbin.h Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
frequencies.c
frequencies.h Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
rar.c
rar.h
stream.c stream: add an assert() to an obscure seek case 2017-08-17 17:38:07 +02:00
stream.h stream: change license to LGPL 2017-06-19 16:10:10 +02:00
stream_avdevice.c stream: get rid of streamtype enum 2017-02-02 18:26:58 +01:00
stream_bluray.c stream_bluray: change license to LGPL 2017-06-26 19:25:22 +02:00
stream_cb.c
stream_cdda.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
stream_dvb.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
stream_dvd.c stream_dvd: fix subs/audio detection on DVDs containing multi-PGC titles 2017-03-15 02:54:18 +01:00
stream_dvd_common.c
stream_dvd_common.h Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
stream_dvdnav.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
stream_edl.c stream: get rid of streamtype enum 2017-02-02 18:26:58 +01:00
stream_file.c stream_file: option to close fd after use -> fdclose:// 2017-06-16 22:48:44 +02:00
stream_lavf.c stream_lavf: use avio_read_partial() 2017-09-01 17:59:03 +02:00
stream_libarchive.c stream_libarchive: add some more points at which reading can be stopped 2016-10-01 18:19:57 +02:00
stream_libarchive.h
stream_memory.c vo_opengl: support loading custom user textures 2017-07-27 23:51:05 +02:00
stream_mf.c demux_mf, stream_mf: change license to LGPL 2017-06-24 13:28:01 +02:00
stream_null.c stream_null: change license to LGPL 2017-05-08 12:45:50 +02:00
stream_rar.c
stream_smb.c Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
stream_tv.c stream: get rid of streamtype enum 2017-02-02 18:26:58 +01:00
tv.c Drop/move img_fourcc.h 2017-06-18 15:13:45 +02:00
tv.h Add checks for HAVE_GPL to various GPL-only source files 2017-10-10 15:51:16 +02:00
tvi_def.h Drop/move img_fourcc.h 2017-06-18 15:13:45 +02:00
tvi_dummy.c Drop/move img_fourcc.h 2017-06-18 15:13:45 +02:00
tvi_v4l2.c Drop/move img_fourcc.h 2017-06-18 15:13:45 +02:00