summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
Diffstat (limited to 'stream')
-rw-r--r--stream/stream.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/stream/stream.c b/stream/stream.c
index a811ec59e0..3281e50fe6 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -744,14 +744,12 @@ int stream_enable_cache(stream_t **stream, int64_t size, int64_t min,
cache->uncached_stream = orig;
cache->flags |= MP_STREAM_SEEK;
cache->mode = STREAM_READ;
+ cache->read_chunk = 4 * STREAM_BUFFER_SIZE;
- cache->read_chunk = orig->read_chunk;
cache->url = strdup(orig->url);
cache->mime_type = talloc_strdup(cache, orig->mime_type);
cache->lavf_type = orig->lavf_type;
cache->opts = orig->opts;
- cache->sector_size = orig->sector_size;
- cache->read_chunk = orig->read_chunk;
cache->start_pos = orig->start_pos;
cache->end_pos = orig->end_pos;