X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdecoder_part.h;h=c8e13445a96c42761e3a3fb1f5f65b6c0de3738b;hb=ca3393a75c1685d1615ff678b58bd3b75fe79cd2;hp=4b309a6682bd39c767882da148032570acba6d15;hpb=f113b2aaca7a65f7b37e12a7d9f3f99e2d834e81;p=dcpomatic.git diff --git a/src/lib/decoder_part.h b/src/lib/decoder_part.h index 4b309a668..c8e13445a 100644 --- a/src/lib/decoder_part.h +++ b/src/lib/decoder_part.h @@ -25,36 +25,31 @@ #include class Decoder; +class Log; +class Film; class DecoderPart { public: DecoderPart (Decoder* parent); + virtual ~DecoderPart () {} - void set_ignore () { - _ignore = true; + virtual boost::optional position (boost::shared_ptr film) const = 0; + virtual void seek () = 0; + + void set_ignore (bool i) { + _ignore = i; } bool ignore () const { return _ignore; } - void set_position (ContentTime position) { - _position = position; - } - - boost::optional position () const { - return _position; - } - - void maybe_seek (ContentTime time, bool accurate); - protected: Decoder* _parent; private: bool _ignore; - boost::optional _position; }; #endif