0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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:
sfan5 2018-12-06 18:46:29 +01:00
parent 3dc2d7d7dd
commit e0419fb181

View File

@ -2320,7 +2320,7 @@ static void fixup_metadata(struct demux_internal *in)
bool demux_is_network_cached(demuxer_t *demuxer)
{
struct demux_internal *in = demuxer->in;
bool use_cache = demuxer->is_network;
bool use_cache = demuxer->stream->streaming;
if (in->opts->enable_cache >= 0)
use_cache = in->opts->enable_cache == 1;
return use_cache;