boost::optional<dcp::Size> _size;
bool _have_storage;
bool _vsync_enabled;
- boost::thread* _thread;
+ boost::thread _thread;
boost::mutex _playing_mutex;
- boost::condition _playing_condition;
- bool _playing;
- bool _one_shot;
+ boost::condition _thread_work_condition;
+ boost::atomic<bool> _playing;
+ boost::atomic<bool> _one_shot;
boost::shared_ptr<wxTimer> _timer;
};