mirror of https://github.com/mpv-player/mpv
stream: force demuxer of cached stream, fixes cdda:// + cache
This commit is contained in:
parent
bf71e28d6b
commit
316dfb93d7
|
@ -795,6 +795,7 @@ static int stream_enable_cache(stream_t **stream, int64_t size, int64_t min,
|
||||||
|
|
||||||
cache->url = talloc_strdup(cache, orig->url);
|
cache->url = talloc_strdup(cache, orig->url);
|
||||||
cache->mime_type = talloc_strdup(cache, orig->mime_type);
|
cache->mime_type = talloc_strdup(cache, orig->mime_type);
|
||||||
|
cache->demuxer = talloc_strdup(cache, orig->demuxer);
|
||||||
cache->lavf_type = talloc_strdup(cache, orig->lavf_type);
|
cache->lavf_type = talloc_strdup(cache, orig->lavf_type);
|
||||||
cache->safe_origin = orig->safe_origin;
|
cache->safe_origin = orig->safe_origin;
|
||||||
cache->opts = orig->opts;
|
cache->opts = orig->opts;
|
||||||
|
|
Loading…
Reference in New Issue