diff options
author | wm4 <wm4@nowhere> | 2015-02-18 21:10:43 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-18 21:12:57 +0100 |
commit | 102946ee0358924f22477435114785bd1f901ade (patch) | |
tree | 041231408c3ae32bee50902f700d68dd4fea55eb /demux/demux.h | |
parent | 37a0c9140ad85be8d184b626759f8d24ca69aa83 (diff) | |
download | mpv-102946ee0358924f22477435114785bd1f901ade.tar.bz2 mpv-102946ee0358924f22477435114785bd1f901ade.tar.xz |
player: enable cache and demuxer thread for subtitles too
Includes some logic for not starting the demuxer thread for fully read
subtitles. (Well, the cache will still waste _lots_ of resources, and
the cache always has to be created, because we don't know whether it'll
be needed _before_ opening the file.)
See #1597.
Diffstat (limited to 'demux/demux.h')
-rw-r--r-- | demux/demux.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/demux/demux.h b/demux/demux.h index cd897be7e2..1d0038a5b0 100644 --- a/demux/demux.h +++ b/demux/demux.h @@ -192,6 +192,11 @@ typedef struct demuxer { // monotonically increasing // - seeking leaves packet positions invariant bool allow_refresh_seeks; + // The file data was fully read, and there is no need to keep the stream + // open, keep the cache active, or to run the demuxer thread. Generating + // packets is not slow either (unlike e.g. libavdevice pseudo-demuxers). + // Typical examples: text subtitles, playlists + bool fully_read; // Bitmask of DEMUX_EVENT_* int events; |