X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fplayer_information.h;h=269a9e6c7357555167fc6f7c6e585fbaeacf799a;hb=7d3b018675efdb8b1a4eeaf05c73f997977cb2e9;hp=84daf020dd01e9a9fccb9a613b069901d656b1e9;hpb=23583dfb56181c76126e652042e9d1940367aa27;p=dcpomatic.git diff --git a/src/wx/player_information.h b/src/wx/player_information.h index 84daf020d..269a9e6c7 100644 --- a/src/wx/player_information.h +++ b/src/wx/player_information.h @@ -18,15 +18,21 @@ */ + +#include +LIBDCP_DISABLE_WARNINGS #include +LIBDCP_ENABLE_WARNINGS #include + class FilmViewer; + class PlayerInformation : public wxPanel { public: - PlayerInformation (wxWindow* parent, ControlFilmViewer* viewer); + PlayerInformation (wxWindow* parent, std::weak_ptr viewer); void triggered_update (); @@ -34,7 +40,7 @@ private: void periodic_update (); - ControlFilmViewer* _viewer; + std::weak_ptr _viewer; wxSizer* _sizer; wxStaticText** _dcp; wxStaticText* _dropped;