Barely-functioning GL playback with new arrangement.
[dcpomatic.git] / src / lib / decoder_part.h
index 36594773a0dfa829d296de282268649ecddf81f6..c8e13445a96c42761e3a3fb1f5f65b6c0de3738b 100644 (file)
 
 class Decoder;
 class Log;
+class Film;
 
 class DecoderPart
 {
 public:
-       DecoderPart (Decoder* parent, boost::shared_ptr<Log> log);
+       DecoderPart (Decoder* parent);
        virtual ~DecoderPart () {}
 
-       void set_ignore () {
-               _ignore = true;
+       virtual boost::optional<dcpomatic::ContentTime> position (boost::shared_ptr<const Film> film) const = 0;
+       virtual void seek () = 0;
+
+       void set_ignore (bool i) {
+               _ignore = i;
        }
 
        bool ignore () const {
                return _ignore;
        }
 
-       virtual boost::optional<ContentTime> position () const = 0;
-
 protected:
        Decoder* _parent;
-       boost::shared_ptr<Log> _log;
 
 private:
        bool _ignore;