summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-24 21:12:00 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-24 21:12:00 +0100
commit5b44e42b4a90331c88b15ed02a7f3d333690b9eb (patch)
tree1d60644f8b278b3e988654851829ef29671af7d6 /src/wx
parenta0f1a3d40f1c93d4432d1d4857c1620907259b2f (diff)
Tweak main window layout. Fix crash on play with no content.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/film_viewer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index 6478b8541..d08afe7a4 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -382,7 +382,7 @@ FilmViewer::play_clicked (wxCommandEvent &)
void
FilmViewer::check_play_state ()
{
- if (!_film) {
+ if (!_film || _film->dcp_video_frame_rate() == 0) {
return;
}