From c3b7debcde8e686a06918095df347752caa8eacb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 4 Jun 2019 00:26:10 +0100 Subject: [PATCH] Fix system information on vsync. --- src/wx/film_viewer.h | 4 ++++ src/wx/system_information_dialog.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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); 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(viewer->panel()); + GLVideoView const * gl = dynamic_cast(viewer->video_view()); if (!gl) { add (_("unknown"), false); } else { -- 2.30.2