diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-16 03:09:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-16 03:09:11 +0100 |
| commit | 2836c0dee60d0b328663c79bba938283b1c9ca13 (patch) | |
| tree | bcb919a1ea081d0f939b4aac808e9ade207619e2 | |
| parent | a4dd7855b0fa91fee9cf94421ec00c9866de7150 (diff) | |
Fix crash on close on Linux.v2.15.121
| -rw-r--r-- | src/wx/gl_video_view.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc index 5d40050de..a13797415 100644 --- a/src/wx/gl_video_view.cc +++ b/src/wx/gl_video_view.cc @@ -161,7 +161,9 @@ GLVideoView::draw (Position<int> inter_position, dcp::Size inter_size) wxSize canvas_size; { boost::mutex::scoped_lock lm (_canvas_mutex); - canvas_size = _canvas->GetSize (); + if (_canvas) { + canvas_size = _canvas->GetSize (); + } } if (canvas_size.GetWidth() < 64 || canvas_size.GetHeight() < 0) { |
