diff options
author | wm4 <wm4@nowhere> | 2014-06-22 02:50:52 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-22 05:04:05 +0200 |
commit | 5b8298376b3ea548b21b652c495b5fcf3d4b5e78 (patch) | |
tree | a02fd4a94abc0c75b953fb8d2cad55894c3de305 /stream/stream.h | |
parent | ea1650fcc338a11adfbbbf950719c65f33acc574 (diff) | |
download | mpv-5b8298376b3ea548b21b652c495b5fcf3d4b5e78.tar.bz2 mpv-5b8298376b3ea548b21b652c495b5fcf3d4b5e78.tar.xz |
stream: add a file cache
For remarks, pretty much see the manpage additions. Could help with
network streams that require too much seeking (maybe), or might be
extended to help with the use case of watching and downloading a file
at the same time.
In general, it might be a useless feature and could be removed again.
Diffstat (limited to 'stream/stream.h')
-rw-r--r-- | stream/stream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h index 267f8e753a..4f8ca6ddae 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -198,6 +198,8 @@ int stream_enable_cache(stream_t **stream, struct mp_cache_opts *opts); // Internal int stream_cache_init(stream_t *cache, stream_t *stream, struct mp_cache_opts *opts); +int stream_file_cache_init(stream_t *cache, stream_t *stream, + struct mp_cache_opts *opts); int stream_write_buffer(stream_t *s, unsigned char *buf, int len); |