Nicer protection of _player_video. Always run GL thread rather than starting/stoppin...
[dcpomatic.git] / src / wx / gl_video_view.h
index 44a4057fd1f55cd816fe0b377b91d3b22de024e9..22b6d8513d18e4434be85e57887acf2c30a54ac8 100644 (file)
@@ -25,6 +25,7 @@
 #include <dcp/util.h>
 #include <boost/shared_ptr.hpp>
 #include <boost/thread.hpp>
+#include <boost/thread/condition.hpp>
 #undef None
 #undef Success
 
@@ -60,4 +61,9 @@ private:
        boost::optional<dcp::Size> _size;
        bool _vsync_enabled;
        boost::thread* _thread;
+
+       boost::mutex _playing_mutex;
+       boost::condition _playing_condition;
+       bool _playing;
+       bool _one_shot;
 };