summaryrefslogtreecommitdiffstats
path: root/stream/stream.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-30 19:05:57 +0200
committerwm4 <wm4@nowhere>2014-08-30 19:05:57 +0200
commitb7fa9818999a65d4640deebda9a93823951e6ccd (patch)
treebc7765f4035fec896bc00d018755ec2a3cee89cc /stream/stream.c
parent98ef68bdfd3696ff0db3792377392037d05257ae (diff)
downloadmpv-b7fa9818999a65d4640deebda9a93823951e6ccd.tar.bz2
mpv-b7fa9818999a65d4640deebda9a93823951e6ccd.tar.xz
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).
Diffstat (limited to 'stream/stream.c')
-rw-r--r--stream/stream.c2
1 files changed, 1 insertions, 1 deletions
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;