Move _state_timer into VideoView.
[dcpomatic.git] / src / wx / film_viewer.cc
index c1d04be03f05e5d9f4a88d6de7f85a13409e773f..c323c8281e7043ef7082c3346baf79ab97951508 100644 (file)
@@ -86,7 +86,6 @@ FilmViewer::FilmViewer (wxWindow* p)
        , _playing (false)
        , _suspended (0)
        , _latency_history_count (0)
-       , _dropped (0)
        , _closed_captions_dialog (new ClosedCaptionsDialog(p, this))
        , _outline_content (false)
        , _eyes (EYES_LEFT)
@@ -94,7 +93,6 @@ FilmViewer::FilmViewer (wxWindow* p)
 #ifdef DCPOMATIC_VARIANT_SWAROOP
        , _background_image (false)
 #endif
-       , _state_timer ("viewer")
        , _gets (0)
        , _idle_get (false)
 {
@@ -229,9 +227,7 @@ FilmViewer::recreate_butler ()
 void
 FilmViewer::refresh_view ()
 {
-       _state_timer.set ("update-view");
        _video_view->update ();
-       _state_timer.unset ();
 }
 
 void
@@ -326,7 +322,6 @@ FilmViewer::start ()
                _audio.startStream ();
        }
 
-       _dropped = 0;
        _playing = true;
        _video_view->start ();
        Started (position());
@@ -656,3 +651,9 @@ FilmViewer::emit_finished ()
        emit (boost::bind(boost::ref(Finished)));
 }
 
+int
+FilmViewer::dropped () const
+{
+       return _video_view->dropped ();
+}
+