Remove redundant FilmViewer::video_position() and use FilmViewer::position() instead.
authorCarl Hetherington <cth@carlh.net>
Sun, 20 Oct 2019 20:20:06 +0000 (22:20 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 8 Jan 2020 20:56:47 +0000 (21:56 +0100)
src/wx/film_viewer.h
src/wx/simple_video_view.cc

index d64eef4..d0041bd 100644 (file)
@@ -135,9 +135,6 @@ public:
        bool pad_black () const {
                return _pad_black;
        }
-       dcpomatic::DCPTime video_position () const {
-               return _video_position;
-       }
 
        boost::signals2::signal<void (boost::weak_ptr<PlayerVideo>)> ImageChanged;
        boost::signals2::signal<void ()> PositionChanged;
index 56e50eb..9aa73fe 100644 (file)
@@ -83,10 +83,10 @@ SimpleVideoView::paint ()
 
 #ifdef DCPOMATIC_VARIANT_SWAROOP
                DCPTime const period = DCPTime::from_seconds(Config::instance()->player_watermark_period() * 60);
-               int64_t n = _viewer->video_position().get() / period.get();
+               int64_t n = _viewer->position().get() / period.get();
                DCPTime from(n * period.get());
                DCPTime to = from + DCPTime::from_seconds(Config::instance()->player_watermark_duration() / 1000.0);
-               if (from <= _viewer->video_position() && _viewer->video_position() <= to) {
+               if (from <= _viewer->position() && _viewer->position() <= to) {
                        if (!_in_watermark) {
                                _in_watermark = true;
                                _watermark_x = rand() % panel_size.GetWidth();