mirror of https://github.com/mpv-player/mpv
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:
parent
98ef68bdfd
commit
b7fa981899
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue