diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-03-25 20:51:13 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-03-25 20:51:13 +0000 |
| commit | 166f0a84d4d6637dbac2ffbbf165b64ceb990684 (patch) | |
| tree | 4aeaaffe89208b31448e12aaf8e90ac2e9ea4026 /src | |
| parent | 4bef2e0b93f84ee98d7a3dccbfa5b13106f7a263 (diff) | |
Fix crash on pressing spacebar in the player with no film loaded (#1506).
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dcpomatic_player.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc index a1a5a59eb..7abc7c921 100644 --- a/src/tools/dcpomatic_player.cc +++ b/src/tools/dcpomatic_player.cc @@ -289,6 +289,9 @@ public: void playback_started (DCPTime time) { /* XXX: this only logs the first piece of content; probably should be each piece? */ + if (_film->content().empty()) { + return; + } shared_ptr<DCPContent> dcp = dynamic_pointer_cast<DCPContent>(_film->content().front()); if (dcp) { |
