From f20f6531533c7dda18e4d916feb6a4294702aa76 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 23 Mar 2018 00:43:43 +0000 Subject: Fix crash on pressing space with no loaded film. --- src/wx/film_viewer.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 1103db159..635a564c6 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -505,6 +505,10 @@ FilmViewer::check_play_state () void FilmViewer::start () { + if (!_film) { + return; + } + if (_audio.isStreamOpen()) { _audio.setStreamTime (_video_position.seconds()); _audio.startStream (); -- cgit v1.2.3