X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdecoder_part.h;h=53d1a1b0827349fecc2b37dece5498be3786b837;hb=052ec34bd487a3645013e87a7062738284d050df;hp=39f77e6e6cbabedffc1e6bd538135a1db7c73019;hpb=e11276a822289d7d7d91a4f431f386ad28ef16dd;p=dcpomatic.git diff --git a/src/lib/decoder_part.h b/src/lib/decoder_part.h index 39f77e6e6..53d1a1b08 100644 --- a/src/lib/decoder_part.h +++ b/src/lib/decoder_part.h @@ -26,17 +26,19 @@ class Decoder; class Log; +class Film; class DecoderPart { public: - DecoderPart (Decoder* parent, boost::shared_ptr log); + DecoderPart (Decoder* parent); virtual ~DecoderPart () {} - virtual boost::optional position () const = 0; + virtual dcpomatic::ContentTime position (boost::shared_ptr film) const = 0; + virtual void seek () = 0; - void set_ignore () { - _ignore = true; + void set_ignore (bool i) { + _ignore = i; } bool ignore () const { @@ -45,7 +47,6 @@ public: protected: Decoder* _parent; - boost::shared_ptr _log; private: bool _ignore;