Move _state_timer into VideoView.
[dcpomatic.git] / src / wx / video_view.h
index 8d9dce68d07e71a32a799ffb1778fede718d704c..4a94aa879bf4bc3beddf093b50c7ea8dc7eee3be 100644 (file)
@@ -22,6 +22,7 @@
 #define DCPOMATIC_VIDEO_VIEW_H
 
 #include "lib/dcpomatic_time.h"
+#include "lib/timer.h"
 #include <boost/shared_ptr.hpp>
 #include <boost/signals2.hpp>
 #include <boost/thread.hpp>
@@ -62,6 +63,10 @@ public:
                return _dropped;
        }
 
+       StateTimer const & state_timer () const {
+               return _state_timer;
+       }
+
        dcpomatic::DCPTime position () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _player_video.second;
@@ -113,6 +118,8 @@ protected:
        int _watermark_y;
 #endif
 
+       StateTimer _state_timer;
+
 private:
        /** Mutex protecting all the state in VideoView */
        mutable boost::mutex _mutex;