diff options
Diffstat (limited to 'src/wx/video_view.h')
| -rw-r--r-- | src/wx/video_view.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/wx/video_view.h b/src/wx/video_view.h index 4a94aa879..fd2684e41 100644 --- a/src/wx/video_view.h +++ b/src/wx/video_view.h @@ -23,6 +23,7 @@ #include "lib/dcpomatic_time.h" #include "lib/timer.h" +#include "lib/types.h" #include <boost/shared_ptr.hpp> #include <boost/signals2.hpp> #include <boost/thread.hpp> @@ -63,6 +64,11 @@ public: return _dropped; } + int gets () const { + boost::mutex::scoped_lock lm (_mutex); + return _gets; + } + StateTimer const & state_timer () const { return _state_timer; } @@ -82,6 +88,11 @@ public: _length = len; } + void set_eyes (Eyes eyes) { + boost::mutex::scoped_lock lm (_mutex); + _eyes = eyes; + } + protected: /* XXX_b: to remove */ friend class FilmViewer; @@ -110,6 +121,11 @@ protected: ++_dropped; } + void add_get () { + boost::mutex::scoped_lock lm (_mutex); + ++_gets; + } + FilmViewer* _viewer; #ifdef DCPOMATIC_VARIANT_SWAROOP @@ -128,8 +144,10 @@ private: int _video_frame_rate; /** length of the film we are playing, or 0 if there is none */ dcpomatic::DCPTime _length; + Eyes _eyes; int _dropped; + int _gets; }; #endif |
