diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-09-12 01:09:03 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-09-27 13:41:46 +0200 |
| commit | 0b791ea708dfa1f5cd44522988dd5efdf2a0b94b (patch) | |
| tree | 39cb17f7a05b6ef468a6947cee7910a098aa020c /src/wx/film_viewer.h | |
| parent | 10f36696805235c774890a4618b7187dd75750d4 (diff) | |
Tidy ownership/lifetime of GLVideoView to fix crashes on close.
Diffstat (limited to 'src/wx/film_viewer.h')
| -rw-r--r-- | src/wx/film_viewer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/film_viewer.h b/src/wx/film_viewer.h index ef5ce41c9..c467eedc1 100644 --- a/src/wx/film_viewer.h +++ b/src/wx/film_viewer.h @@ -62,7 +62,7 @@ public: return _video_view->get(); } - VideoView const * video_view () const { + std::shared_ptr<const VideoView> video_view () const { return _video_view; } @@ -169,7 +169,7 @@ private: std::shared_ptr<Film> _film; std::shared_ptr<Player> _player; - VideoView* _video_view = nullptr; + std::shared_ptr<VideoView> _video_view; bool _coalesce_player_changes = false; std::vector<int> _pending_player_changes; |
