}
} catch (dcp::DCPReadError) {
/* The DCP is probably missing */
+ } catch (dcp::KDMDecryptionError) {
+ /* We have an incorrect KDM */
}
} else {
_kdm->Enable (false);
list<shared_ptr<Content> > content;
if (r == wxID_OK) {
- content = content_factory (film, path);
+ if (dc) {
+ content.push_back (shared_ptr<DCPContent> (new DCPContent (film, path)));
+ } else {
+ content = content_factory (film, path);
+ }
}
if (content.empty ()) {
return;
}
- old_content->set_path (new_content->path (0));
+ old_content->set_paths (new_content->paths());
}
void
try {
dcp->add_kdm (dcp::EncryptedKDM (dcp::file_to_string (wx_to_std (d->GetPath ()), MAX_KDM_SIZE)));
} catch (exception& e) {
- error_dialog (_parent, wxString::Format (_("Could not load KDM (%s)"), e.what ()));
+ error_dialog (_parent, wxString::Format (_("Could not load KDM.")), std_to_wx(e.what()));
d->Destroy ();
return;
}