summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-10-21 21:13:53 +0200
committerwm4 <wm4@nowhere>2017-10-21 21:13:53 +0200
commit60df01512cf88d51b6334c95dab72de734f136fd (patch)
treeb3fffa31fad74494d49d2fd33284e9ae3af75fd1 /demux
parent633077814ed32a6dd5d09be79688df0e1062b91b (diff)
downloadmpv-60df01512cf88d51b6334c95dab72de734f136fd.tar.bz2
mpv-60df01512cf88d51b6334c95dab72de734f136fd.tar.xz
command: read the diff if you want to know
Diffstat (limited to 'demux')
-rw-r--r--demux/demux.c1
-rw-r--r--demux/demux.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/demux/demux.c b/demux/demux.c
index 015a3a6e2a..2ebed5a3e7 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -1931,6 +1931,7 @@ static int cached_demux_control(struct demux_internal *in, int cmd, void *arg)
struct demux_ctrl_reader_state *r = arg;
*r = (struct demux_ctrl_reader_state){
.eof = in->last_eof,
+ .seekable = in->seekable_cache,
.ts_start = MP_NOPTS_VALUE,
.ts_min = MP_NOPTS_VALUE,
.ts_max = MP_NOPTS_VALUE,
diff --git a/demux/demux.h b/demux/demux.h
index 24a08ecff4..9c9824658b 100644
--- a/demux/demux.h
+++ b/demux/demux.h
@@ -41,7 +41,7 @@ enum demux_ctrl {
};
struct demux_ctrl_reader_state {
- bool eof, underrun, idle;
+ bool eof, underrun, idle, seekable;
double ts_duration;
double ts_reader; // approx. timerstamp of decoder position
double ts_start; // approx. timestamp for the earliest packet buffered