projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c42365
)
Fix crash on pressing space with no loaded film.
author
Carl Hetherington
<cth@carlh.net>
Fri, 23 Mar 2018 00:43:43 +0000
(
00:43
+0000)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 23 Mar 2018 00:43:43 +0000
(
00:43
+0000)
src/wx/film_viewer.cc
patch
|
blob
|
history
diff --git
a/src/wx/film_viewer.cc
b/src/wx/film_viewer.cc
index 1103db159f5a5c2bdd1a98d8339c86cd4d056509..635a564c6558c241c04b62301203d7e8d5528a52 100644
(file)
--- 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 ();