From 377de24c4cb129fab39e30a089050c2af8202494 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 11 Dec 2019 00:04:56 +0100 Subject: Fix crash on hotkey-opening the menu then pressing right a few times. --- src/wx/film_viewer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 */ -- cgit v1.2.3