From ea910e250a0fb3b0ad3ce0cf32dd27b24c17cd1d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 11 Dec 2013 10:31:18 +0000 Subject: Various work on better seeking (and seeking of audio). --- src/lib/decoder.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/decoder.h') diff --git a/src/lib/decoder.h b/src/lib/decoder.h index d67592ed8..908d3aae5 100644 --- a/src/lib/decoder.h +++ b/src/lib/decoder.h @@ -27,6 +27,7 @@ #include #include #include +#include "types.h" class Film; @@ -43,6 +44,14 @@ public: * cause the object to emit some data. */ virtual void pass () = 0; + + /** Seek so that the next pass() will yield the next thing + * (video/sound frame, subtitle etc.) at or after the requested + * time. Pass accurate = true to try harder to get close to + * the request. + */ + virtual void seek (Time time, bool accurate) = 0; + virtual bool done () const = 0; protected: -- cgit v1.2.3