X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdecoder_part.h;h=96225f3dd78e681b7213bccf8ba7296560f5a68f;hb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26;hp=00099fb33379f6f566c36a71254141fa7ecfd211;hpb=aed133a863172d17b75680ff375cdab890ecd668;p=dcpomatic.git diff --git a/src/lib/decoder_part.h b/src/lib/decoder_part.h index 00099fb33..96225f3dd 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); - virtual DecoderPart () {} + DecoderPart (Decoder* parent); + virtual ~DecoderPart () {} - void set_ignore () { - _ignore = true; + virtual boost::optional position (std::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;