Accessor for ClosedCaptionsDialog.
authorCarl Hetherington <cth@carlh.net>
Wed, 20 Nov 2019 22:46:40 +0000 (23:46 +0100)
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 8cacf80..c6fbd66 100644 (file)
@@ -132,6 +132,9 @@ public:
        boost::shared_ptr<Butler> butler () const {
                return _butler;
        }
+       ClosedCaptionsDialog* closed_captions_dialog () const {
+               return _closed_captions_dialog;
+       }
 
        boost::signals2::signal<void (boost::weak_ptr<PlayerVideo>)> ImageChanged;
        boost::signals2::signal<void (dcpomatic::DCPTime)> Started;
index c8fe7b9..e71d894 100644 (file)
@@ -252,5 +252,5 @@ SimpleVideoView::display_player_video ()
 
        _viewer->refresh_view ();
 
-       _viewer->_closed_captions_dialog->update (_viewer->time());
+       _viewer->closed_captions_dialog()->update (_viewer->time());
 }