diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-03-23 00:43:43 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-03-23 00:43:43 +0000 |
| commit | f20f6531533c7dda18e4d916feb6a4294702aa76 (patch) | |
| tree | cc5c82e8d78852a2247e39f49fca87c2f2710b2f /src | |
| parent | 3c42365762079289499bdc25144bb90b2e3509c6 (diff) | |
Fix crash on pressing space with no loaded film.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_viewer.cc | 4 |
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 (); |
