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).
This commit is contained in:
wm4 2014-08-30 19:05:57 +02:00
parent 98ef68bdfd
commit b7fa981899
1 changed files with 1 additions and 1 deletions

View File

@ -769,7 +769,7 @@ stream_t *open_memory_stream(void *data, int len)
static stream_t *open_cache(stream_t *orig, const char *name) static stream_t *open_cache(stream_t *orig, const char *name)
{ {
stream_t *cache = new_stream(); stream_t *cache = new_stream();
cache->uncached_type = orig->type; cache->uncached_type = orig->uncached_type;
cache->uncached_stream = orig; cache->uncached_stream = orig;
cache->seekable = true; cache->seekable = true;
cache->mode = STREAM_READ; cache->mode = STREAM_READ;