diff options
author | wm4 <wm4@nowhere> | 2019-09-20 17:01:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-20 17:01:35 +0200 |
commit | 94bfe833559e5426d2c8b51db321f2b1dd28bd0e (patch) | |
tree | 7829b19b302b4914ffd9b38b3594be7b05150db3 /demux/demux.h | |
parent | 4fa8f33b92a44fe928817a81653f135402192cac (diff) | |
download | mpv-94bfe833559e5426d2c8b51db321f2b1dd28bd0e.tar.bz2 mpv-94bfe833559e5426d2c8b51db321f2b1dd28bd0e.tar.xz |
demux: propagate streaming flag through demux_timeline
Before this commit, EDL or CUE files did not properly enable the cache
if they were on "slow" media (stream->streaming==true). This happened
because the stream is unset for demux_timeline, so the streaming flag
could not be queried anymore.
Fix this by adding this flag to struct demuxer, and propagate it exactly
like the is_network flag. is_network is not used for checking the cache
options anymore, and its main function seems to be something else.
Normal http streams set the streaming flag already.
This should fix #6958.
Diffstat (limited to 'demux/demux.h')
-rw-r--r-- | demux/demux.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/demux.h b/demux/demux.h index ebebd0853f..6ffd5587ec 100644 --- a/demux/demux.h +++ b/demux/demux.h @@ -193,6 +193,7 @@ typedef struct demuxer { // Typical examples: text subtitles, playlists bool fully_read; bool is_network; // opened directly from a network stream + bool is_streaming; // implies a "slow" input, such as network or FUSE bool access_references; // allow opening other files/URLs // Bitmask of DEMUX_EVENT_* |