From b7fa9818999a65d4640deebda9a93823951e6ccd Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 30 Aug 2014 19:05:57 +0200 Subject: [PATCH] stream: correctly propagate uncached stream type This makes the ordered chapter code not think that a stream from the local filesystem is not a local file (it checks uncached_type). --- stream/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream/stream.c b/stream/stream.c index 78859bc44f..cfb3cb6c82 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -769,7 +769,7 @@ stream_t *open_memory_stream(void *data, int len) static stream_t *open_cache(stream_t *orig, const char *name) { stream_t *cache = new_stream(); - cache->uncached_type = orig->type; + cache->uncached_type = orig->uncached_type; cache->uncached_stream = orig; cache->seekable = true; cache->mode = STREAM_READ;