From: Carl Hetherington Date: Mon, 3 Jun 2019 23:26:10 +0000 (+0100) Subject: Fix system information on vsync. X-Git-Tag: v2.15.6~1 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=c3b7debcde8e686a06918095df347752caa8eacb Fix system information on vsync. --- 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 {