From 60df01512cf88d51b6334c95dab72de734f136fd Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Oct 2017 21:13:53 +0200 Subject: command: read the diff if you want to know --- demux/demux.c | 1 + demux/demux.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'demux') 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 -- cgit v1.2.3