diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-11-21 23:43:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-01-08 21:56:47 +0100 |
| commit | f77529bdfa01ae13f889442900988fc401b63c62 (patch) | |
| tree | facabf65f292fdfcf5fbffb6964d3d84f11120af /src/wx/video_view.h | |
| parent | b3b371294ed5e6cc18ef64ba1b06ca76726b903a (diff) | |
Various cleanups and thread-safety.
Diffstat (limited to 'src/wx/video_view.h')
| -rw-r--r-- | src/wx/video_view.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/wx/video_view.h b/src/wx/video_view.h index fd2684e41..5d5d33163 100644 --- a/src/wx/video_view.h +++ b/src/wx/video_view.h @@ -24,16 +24,18 @@ #include "lib/dcpomatic_time.h" #include "lib/timer.h" #include "lib/types.h" +#include "lib/exception_store.h" #include <boost/shared_ptr.hpp> #include <boost/signals2.hpp> #include <boost/thread.hpp> +#include <boost/noncopyable.hpp> class Image; class wxWindow; class FilmViewer; class PlayerVideo; -class VideoView +class VideoView : public ExceptionStore, public boost::noncopyable { public: VideoView (FilmViewer* viewer); @@ -93,6 +95,11 @@ public: _eyes = eyes; } + void set_three_d (bool t) { + boost::mutex::scoped_lock lm (_mutex); + _three_d = t; + } + protected: /* XXX_b: to remove */ friend class FilmViewer; @@ -145,6 +152,7 @@ private: /** length of the film we are playing, or 0 if there is none */ dcpomatic::DCPTime _length; Eyes _eyes; + bool _three_d; int _dropped; int _gets; |
