X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwx%2Fstandard_controls.cc;h=de63c2fce8da83ab32e74aa6708ff3eca3c07960;hb=3b352d6c49e433f82212e7d3f7ae8ccdc28566dd;hp=1e4ecc8d7fc74e5469c76759272110d209f42f1d;hpb=39fb8198febde1937019db1c300ec363aab5aa56;p=dcpomatic.git diff --git a/src/wx/standard_controls.cc b/src/wx/standard_controls.cc index 1e4ecc8d7..de63c2fce 100644 --- a/src/wx/standard_controls.cc +++ b/src/wx/standard_controls.cc @@ -21,14 +21,17 @@ #include "film_viewer.h" #include "standard_controls.h" +#include +LIBDCP_DISABLE_WARNINGS #include #include +LIBDCP_ENABLE_WARNINGS using std::shared_ptr; -StandardControls::StandardControls (wxWindow* parent, shared_ptr viewer, bool editor_controls) +StandardControls::StandardControls(wxWindow* parent, FilmViewer& viewer, bool editor_controls) : Controls (parent, viewer, editor_controls) , _play_button (new wxToggleButton(this, wxID_ANY, _("Play"))) { @@ -68,9 +71,9 @@ StandardControls::check_play_state () } if (_play_button->GetValue()) { - _viewer->start (); + _viewer.start(); } else { - _viewer->stop (); + _viewer.stop(); } }