2018-01-12 Carl Hetherington <cth@carlh.net>
+ * Fix crash when loading an incorrect KDM into the player (#1167).
+
* Desensitize appropriate player menu options when there
is no loaded DCP (#1167).
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 ();