diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-06-04 00:26:10 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-06-04 00:26:10 +0100 |
| commit | c3b7debcde8e686a06918095df347752caa8eacb (patch) | |
| tree | dac937d01978ad9b29b30975d160a8f7f4804325 | |
| parent | 95fd93f5b1432b5230be76f1521216b472744514 (diff) | |
Fix system information on vsync.
| -rw-r--r-- | src/wx/film_viewer.h | 4 | ||||
| -rw-r--r-- | src/wx/system_information_dialog.cc | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/wx/film_viewer.h b/src/wx/film_viewer.h index e9450c7e7..5ddb12baf 100644 --- a/src/wx/film_viewer.h +++ b/src/wx/film_viewer.h @@ -53,6 +53,10 @@ public: return _video_view->get(); } + VideoView const * video_view () const { + return _video_view; + } + void show_closed_captions (); void set_film (boost::shared_ptr<Film>); diff --git a/src/wx/system_information_dialog.cc b/src/wx/system_information_dialog.cc index 0e1916202..592e7c0ef 100644 --- a/src/wx/system_information_dialog.cc +++ b/src/wx/system_information_dialog.cc @@ -53,7 +53,7 @@ SystemInformationDialog::SystemInformationDialog (wxWindow* parent, weak_ptr<Fil if (!viewer) { add (_("unknown"), false); } else { - GLVideoView* gl = dynamic_cast<GLVideoView*>(viewer->panel()); + GLVideoView const * gl = dynamic_cast<GLVideoView const *>(viewer->video_view()); if (!gl) { add (_("unknown"), false); } else { |
