Only mark _suspended as false at the appropriate times; previously
[dcpomatic.git] / src / lib / decoder.h
index 55d9cfc64b92172d35e1714708965e4672f430de..d610f8727c902cd6bf889ab8cbc024ba3981f606 100644 (file)
@@ -26,6 +26,7 @@
 #define DCPOMATIC_DECODER_H
 
 #include "types.h"
+#include "film.h"
 #include "dcpomatic_time.h"
 #include <boost/utility.hpp>
 
@@ -41,6 +42,7 @@ class DecoderPart;
 class Decoder : public boost::noncopyable
 {
 public:
+       Decoder (boost::weak_ptr<const Film> film);
        virtual ~Decoder () {}
 
        boost::shared_ptr<VideoDecoder> video;
@@ -56,6 +58,12 @@ public:
        virtual void seek (ContentTime time, bool accurate);
 
        ContentTime position () const;
+
+protected:
+       boost::shared_ptr<const Film> film () const;
+
+private:
+       boost::weak_ptr<const Film> _film;
 };
 
 #endif