diff options
author | wm4 <wm4@nowhere> | 2017-02-02 18:03:29 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-02-02 18:03:29 +0100 |
commit | e13a62fc346867450cd41d02cffbdaf477a3fec4 (patch) | |
tree | 3e8675f07f4d2e58de765823944141d5fd83ace2 /stream/stream.h | |
parent | d11c03faeec257e1f38886e3eb79a977d41127cb (diff) | |
download | mpv-e13a62fc346867450cd41d02cffbdaf477a3fec4.tar.bz2 mpv-e13a62fc346867450cd41d02cffbdaf477a3fec4.tar.xz |
stream: better method signal caching, rename weird uncached_stream field
"uncached_stream" is a pretty bad name. It could be mistaken for a
boolean, and then its meaning would be inverted. Rename it.
Also add a "caching" field, which signals that the stream is a cache or
reads from a cache. This is easier to understand and more flexible.
Diffstat (limited to 'stream/stream.h')
-rw-r--r-- | stream/stream.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/stream.h b/stream/stream.h index f309ab1b86..b6fcc3a6fa 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -197,13 +197,14 @@ typedef struct stream { bool fast_skip : 1; // consider stream fast enough to fw-seek by skipping bool is_network : 1; // original stream_info_t.is_network flag bool allow_caching : 1; // stream cache makes sense + bool caching : 1; // is a cache, or accesses a cache bool access_references : 1; // open other streams struct mp_log *log; struct mpv_global *global; struct mp_cancel *cancel; // cancellation notification - struct stream *uncached_stream; // underlying stream for cache wrapper + struct stream *underlying; // e.g. cache wrapper // Includes additional padding in case sizes get rounded up by sector size. unsigned char buffer[]; |