diff options
author | wm4 <wm4@nowhere> | 2013-07-10 15:03:54 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-10 15:05:24 +0200 |
commit | 175cd3cb570525fd4ed8f6ec66e3a66a461cc896 (patch) | |
tree | efd5b88dfc15f077601aa899c45f5a21be69f925 /stream/stream.h | |
parent | 1d48b11478b346411d57b8fee1c242591f9b83c5 (diff) | |
download | mpv-175cd3cb570525fd4ed8f6ec66e3a66a461cc896.tar.bz2 mpv-175cd3cb570525fd4ed8f6ec66e3a66a461cc896.tar.xz |
options: add --cache-default option
Add this option, which lets users set the cache size without forcing it
even when playing from the local filesystem.
Also document the default value explicitly.
The Matroska linked segments case is slightly simplified: they can
never come from network (mostly because it'd be insane, and we can't
even list files from network sources), so the cache will never be
enabled automatically.
Diffstat (limited to 'stream/stream.h')
-rw-r--r-- | stream/stream.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/stream/stream.h b/stream/stream.h index 149618ccd6..f1033ed38f 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -154,7 +154,6 @@ typedef struct stream { int eof; int mode; //STREAM_READ or STREAM_WRITE bool streaming; // known to be a network stream if true - int cache_size; // cache size in KB to use if enabled void *priv; // used for DVD, TV, RTSP etc char *url; // strdup() of filename/url char *mime_type; // when HTTP streaming is used @@ -175,10 +174,9 @@ int stream_fill_buffer(stream_t *s); void stream_set_capture_file(stream_t *s, const char *filename); int stream_enable_cache_percent(stream_t **stream, int64_t stream_cache_size, + int64_t stream_cache_def_size, float stream_cache_min_percent, float stream_cache_seek_min_percent); -int stream_enable_cache(stream_t **stream, int64_t size, int64_t min, - int64_t seek_limit); // Internal int stream_cache_init(stream_t *cache, stream_t *stream, int64_t size, |