Fix crash.
authorCarl Hetherington <cth@carlh.net>
Thu, 6 Feb 2020 20:56:49 +0000 (21:56 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 6 Feb 2020 20:56:49 +0000 (21:56 +0100)
src/wx/gl_video_view.cc

index ebf4098e4c814693718e25be61a3b631776b7560..0e4bcb671b88cfbebdba84ac0fe55a6b42169fe8 100644 (file)
@@ -117,6 +117,10 @@ GLVideoView::~GLVideoView ()
 void
 GLVideoView::check_for_butler_errors ()
 {
 void
 GLVideoView::check_for_butler_errors ()
 {
+       if (!_viewer->butler()) {
+               return;
+       }
+
        try {
                _viewer->butler()->rethrow ();
        } catch (DecodeError& e) {
        try {
                _viewer->butler()->rethrow ();
        } catch (DecodeError& e) {