diff options
author | wm4 <wm4@nowhere> | 2012-12-02 00:22:54 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-12-03 21:08:52 +0100 |
commit | 3486f59fe28efa81ce6951208b94cec91ad6cdb8 (patch) | |
tree | e85c775c112ce3465ccf6f367f08821828626313 /core/options.h | |
parent | c02f2529385ab2ddd9605c5ebe5d2a68be200ec4 (diff) | |
download | mpv-3486f59fe28efa81ce6951208b94cec91ad6cdb8.tar.bz2 mpv-3486f59fe28efa81ce6951208b94cec91ad6cdb8.tar.xz |
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.
Diffstat (limited to 'core/options.h')
-rw-r--r-- | core/options.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/options.h b/core/options.h index 47f4593b9b..2847637bcc 100644 --- a/core/options.h +++ b/core/options.h @@ -55,6 +55,7 @@ typedef struct MPOpts { int stream_cache_size; float stream_cache_min_percent; float stream_cache_seek_min_percent; + int stream_cache_pause; int chapterrange[2]; int edition_id; int correct_pts; |