diff options
author | wm4 <wm4@nowhere> | 2015-01-26 13:46:33 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-26 13:46:33 +0100 |
commit | 00b261135248be957dd14ae9e8ca26430a39fae0 (patch) | |
tree | 4bf6d084daca59b6af930b1126d97ea6332c46af /demux/demux.h | |
parent | 792db4eee3173f15eb5003f571509d9eb7c12dcf (diff) | |
download | mpv-00b261135248be957dd14ae9e8ca26430a39fae0.tar.bz2 mpv-00b261135248be957dd14ae9e8ca26430a39fae0.tar.xz |
command: export more details about file seekability
If a file is unseekable (consider e.g. a http server without resume
functionality), but the stream cache is active, the player will enable
seeking anyway. Until know, client API user couldn't know that this
happens, and it has implications on how well seeking will work. So add a
property which exports whether this situation applies.
Fixes #1522.
Diffstat (limited to 'demux/demux.h')
-rw-r--r-- | demux/demux.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/demux/demux.h b/demux/demux.h index b53a30c805..e18c013a5b 100644 --- a/demux/demux.h +++ b/demux/demux.h @@ -185,7 +185,8 @@ typedef struct demuxer { int64_t filepos; // input stream current pos. char *filename; // same as stream->url enum demuxer_type type; - int seekable; // flag + bool seekable; + bool partially_seekable; // implies seekable=true double start_time; // File format allows PTS resets (even if the current file is without) bool ts_resets_possible; |