X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdecoder_part.h;h=53d1a1b0827349fecc2b37dece5498be3786b837;hb=c4403784febdbdd42e9c32e67fadb147f11fe566;hp=f2ab96d1573d7a758f93436ddfcb0f8d8b9a0e77;hpb=548dc3a41c2d84ef2c4bbba73e622496c731b8c0;p=dcpomatic.git diff --git a/src/lib/decoder_part.h b/src/lib/decoder_part.h index f2ab96d15..53d1a1b08 100644 --- a/src/lib/decoder_part.h +++ b/src/lib/decoder_part.h @@ -26,28 +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 dcpomatic::ContentTime 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;