summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-03-23 00:43:43 +0000
committerCarl Hetherington <cth@carlh.net>2018-03-23 00:43:43 +0000
commitf20f6531533c7dda18e4d916feb6a4294702aa76 (patch)
treecc5c82e8d78852a2247e39f49fca87c2f2710b2f /src
parent3c42365762079289499bdc25144bb90b2e3509c6 (diff)
Fix crash on pressing space with no loaded film.
Diffstat (limited to 'src')
-rw-r--r--src/wx/film_viewer.cc4
1 files changed, 4 insertions, 0 deletions
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 ();