diff options
author | wm4 <wm4@nowhere> | 2018-01-06 15:49:32 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-01-07 05:03:15 -0800 |
commit | ebe0f5d31356422e72ade81cf43794116f32c12d (patch) | |
tree | 6d85ce8b3f454e18a62638f10a23f447bbd7057e /video/decode/vd_lavc.c | |
parent | b1a11191fdda06f737ce6d9b25e21fbcc6bb16d1 (diff) |
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.
Diffstat (limited to 'video/decode/vd_lavc.c')
0 files changed, 0 insertions, 0 deletions