mirror of https://github.com/mpv-player/mpv
demux: fix regression in decision about stream caching
The `streaming` flag covers more cases than just networked streams, such as files read from NFS, SMB or FUSE mountpoints.
This commit is contained in:
parent
3dc2d7d7dd
commit
e0419fb181
|
@ -2320,7 +2320,7 @@ static void fixup_metadata(struct demux_internal *in)
|
||||||
bool demux_is_network_cached(demuxer_t *demuxer)
|
bool demux_is_network_cached(demuxer_t *demuxer)
|
||||||
{
|
{
|
||||||
struct demux_internal *in = demuxer->in;
|
struct demux_internal *in = demuxer->in;
|
||||||
bool use_cache = demuxer->is_network;
|
bool use_cache = demuxer->stream->streaming;
|
||||||
if (in->opts->enable_cache >= 0)
|
if (in->opts->enable_cache >= 0)
|
||||||
use_cache = in->opts->enable_cache == 1;
|
use_cache = in->opts->enable_cache == 1;
|
||||||
return use_cache;
|
return use_cache;
|
||||||
|
|
Loading…
Reference in New Issue