summaryrefslogtreecommitdiff
path: root/src/wx/video_view.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-11-21 22:38:33 +0100
committerCarl Hetherington <cth@carlh.net>2020-01-08 21:56:47 +0100
commitb3b371294ed5e6cc18ef64ba1b06ca76726b903a (patch)
tree08ecb920e3aef37a3aa6adef501b35c85eac018b /src/wx/video_view.h
parent7f5d317d3ba2bdb1838e942c436ad9f5de321bb4 (diff)
Remove some friends from FilmViewer.
Diffstat (limited to 'src/wx/video_view.h')
-rw-r--r--src/wx/video_view.h18
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