From: Carl Hetherington Date: Tue, 10 Dec 2019 23:04:56 +0000 (+0100) Subject: Fix crash on hotkey-opening the menu then pressing right a few times. X-Git-Tag: v2.15.38~11 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=377de24c4cb129fab39e30a089050c2af8202494;p=dcpomatic.git Fix crash on hotkey-opening the menu then pressing right a few times. --- 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 */