diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-12-11 00:04:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-12-11 00:04:56 +0100 |
| commit | 377de24c4cb129fab39e30a089050c2af8202494 (patch) | |
| tree | 4f2011f3064cf474b8751ebd8167d39b38f38782 | |
| parent | 3c6ff2375886861cb41604e92cd8ff64a46dbe76 (diff) | |
Fix crash on hotkey-opening the menu then pressing right a few times.
| -rw-r--r-- | src/wx/film_viewer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 9b01cd394..893e1bf0f 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -754,7 +754,7 @@ FilmViewer::dcp_decode_reduction () const DCPTime FilmViewer::one_video_frame () const { - return DCPTime::from_frames (1, _film->video_frame_rate()); + return DCPTime::from_frames (1, _film ? _film->video_frame_rate() : 24); } /** Open a dialog box showing our film's closed captions */ |
