Remove Piece::_done in favour of a method.
[dcpomatic.git] / src / lib / piece.h
index 2586bb1d053ae0b8a361609a3f3f510f9b3f18e3..37336afcbeb34c0c8da6ec99ccd5f7d168f95771 100644 (file)
@@ -107,13 +107,13 @@ private:
        void atmos (std::shared_ptr<const dcp::AtmosFrame> data, Frame frame, AtmosMetadata metadata);
 
        void flush ();
+       bool done () const;
 
        std::weak_ptr<const Film> _film;
        std::shared_ptr<Content> _content;
        std::shared_ptr<Decoder> _decoder;
        FrameRateChange _frc;
        bool _fast = false;
-       bool _done = false;
        boost::optional<dcpomatic::DCPTimePeriod> _ignore_video;
        std::map<AudioStreamPtr, dcpomatic::DCPTime> _stream_last_push_end;