Use FilmViewer::{film,playing,position}()
authorCarl Hetherington <cth@carlh.net>
Sun, 20 Oct 2019 20:14:53 +0000 (22:14 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 8 Jan 2020 20:56:47 +0000 (21:56 +0100)
src/wx/simple_video_view.cc

index baf566a..56e50eb 100644 (file)
@@ -143,14 +143,14 @@ SimpleVideoView::update ()
 void
 SimpleVideoView::timer ()
 {
-       if (!_viewer->_film || !_viewer->_playing) {
+       if (!_viewer->film() || !_viewer->playing()) {
                return;
        }
 
        _viewer->get (false);
-       DCPTime const next = _viewer->_video_position + _viewer->one_video_frame();
+       DCPTime const next = _viewer->position() + _viewer->one_video_frame();
 
-       if (next >= _viewer->_film->length()) {
+       if (next >= _viewer->film()->length()) {
                _viewer->stop ();
                _viewer->Finished ();
                return;