diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-11-19 23:57:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-01-08 21:56:47 +0100 |
| commit | 798819f74c6d194b95d3458f88b7ad60ef5f282c (patch) | |
| tree | fa255d42af45799b7456407f6913394bf0889fbe /src/wx/gl_video_view.h | |
| parent | edfb627f1226814ac804473b54d781ffd6db2700 (diff) | |
Nicer protection of _player_video. Always run GL thread rather than starting/stopping it.
Diffstat (limited to 'src/wx/gl_video_view.h')
| -rw-r--r-- | src/wx/gl_video_view.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wx/gl_video_view.h b/src/wx/gl_video_view.h index 44a4057fd..22b6d8513 100644 --- a/src/wx/gl_video_view.h +++ b/src/wx/gl_video_view.h @@ -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; }; |
