diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-01-12 21:29:00 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-01-12 21:29:00 +0000 |
| commit | 49281333410c321e616c5d3cfd4308e21d0c9cb4 (patch) | |
| tree | 56430cb1427d16c39232146547a08ea36fe003a3 /src | |
| parent | 166fa3304a8125c3dfb311df153f4934e9c1764d (diff) | |
Fix crash when loading an incorrect KDM.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dcpomatic_player.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc index f6f329c42..0464ce96e 100644 --- a/src/tools/dcpomatic_player.cc +++ b/src/tools/dcpomatic_player.cc @@ -289,13 +289,12 @@ private: DCPOMATIC_ASSERT (dcp); try { dcp->add_kdm (dcp::EncryptedKDM (dcp::file_to_string (wx_to_std (d->GetPath ()), MAX_KDM_SIZE))); + dcp->examine (shared_ptr<Job>()); } catch (exception& e) { error_dialog (this, wxString::Format (_("Could not load KDM (%s)"), std_to_wx(e.what()))); d->Destroy (); return; } - - dcp->examine (shared_ptr<Job>()); } d->Destroy (); |
