From 5b8298376b3ea548b21b652c495b5fcf3d4b5e78 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 22 Jun 2014 02:50:52 +0200 Subject: 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. --- stream/stream.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stream/stream.h') 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); -- cgit v1.2.3