Fix deadlock during content examination.
[dcpomatic.git] / src / lib / player.h
index 8a81146c9547fb7d7612dc59e38d3f1b0d289880..65ab1279f7e3c986d528c61c3e8bdc4429575efe 100644 (file)
@@ -145,8 +145,8 @@ private:
        boost::shared_ptr<const Film> _film;
        boost::shared_ptr<const Playlist> _playlist;
 
-       /** true if we are suspended (i.e. pass() and seek() do nothing) */
-       bool _suspended;
+       /** > 0 if we are suspended (i.e. pass() and seek() do nothing) */
+       boost::atomic<int> _suspended;
        std::list<boost::shared_ptr<Piece> > _pieces;
 
        /** Size of the image in the DCP (e.g. 1990x1080 for flat) */