X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdecoder_part.h;h=c8e13445a96c42761e3a3fb1f5f65b6c0de3738b;hb=fa5f3a8bf77209da27acc33cf144e2e4500a2600;hp=ed92d43b4258abf95fa03a2049e7b137c69cfe29;hpb=936ff6927ad24daf0ed20776b19b6faa3df9bf83;p=dcpomatic.git diff --git a/src/lib/decoder_part.h b/src/lib/decoder_part.h index ed92d43b4..c8e13445a 100644 --- a/src/lib/decoder_part.h +++ b/src/lib/decoder_part.h @@ -26,27 +26,27 @@ class Decoder; class Log; +class Film; class DecoderPart { public: - DecoderPart (Decoder* parent, boost::shared_ptr log); + 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; } - virtual boost::optional position () const = 0; - - void maybe_seek (ContentTime time, bool accurate); - protected: Decoder* _parent; - boost::shared_ptr _log; private: bool _ignore;