Add defensive check.
authorCarl Hetherington <cth@carlh.net>
Thu, 4 Jun 2020 23:18:31 +0000 (01:18 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 4 Jun 2020 23:18:31 +0000 (01:18 +0200)
src/wx/film_viewer.cc

index bb483f0e235c98cace1283c627bf0957f893ad4c..21a35c227465e3631444a9cac687bccc84c77bd3 100644 (file)
@@ -431,7 +431,7 @@ FilmViewer::slow_refresh ()
 bool
 FilmViewer::quick_refresh ()
 {
-       if (!_video_view || !_film) {
+       if (!_video_view || !_film || !_player) {
                return true;
        }
        return _video_view->refresh_metadata (_film, _player->video_container_size(), _film->frame_size());