X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdecoder_part.h;h=39f77e6e6cbabedffc1e6bd538135a1db7c73019;hb=e11276a822289d7d7d91a4f431f386ad28ef16dd;hp=4b309a6682bd39c767882da148032570acba6d15;hpb=f113b2aaca7a65f7b37e12a7d9f3f99e2d834e81;p=dcpomatic.git diff --git a/src/lib/decoder_part.h b/src/lib/decoder_part.h index 4b309a668..39f77e6e6 100644 --- a/src/lib/decoder_part.h +++ b/src/lib/decoder_part.h @@ -25,11 +25,15 @@ #include class Decoder; +class Log; class DecoderPart { public: - DecoderPart (Decoder* parent); + DecoderPart (Decoder* parent, boost::shared_ptr log); + virtual ~DecoderPart () {} + + virtual boost::optional position () const = 0; void set_ignore () { _ignore = true; @@ -39,22 +43,12 @@ public: 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; + boost::shared_ptr _log; private: bool _ignore; - boost::optional _position; }; #endif