diff options
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux.c | 1 | ||||
-rw-r--r-- | demux/demux.h | 2 |
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 |