summaryrefslogtreecommitdiff
path: root/src/wx/kdm_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-05-05 15:08:50 +0200
committerCarl Hetherington <cth@carlh.net>2020-05-06 20:15:49 +0200
commit5579acd7ff7e1460f0b5bb54a4deedbd356153cd (patch)
treee00ef2135b01dd0638526bde23dad5f28411cb0f /src/wx/kdm_dialog.cc
parent0ab8cf5b312f36a14f66d4564c6f4b1694ddaae0 (diff)
Write 'f', 'b' and 'e' tags into all KDMWithMetadata when they are made.
Diffstat (limited to 'src/wx/kdm_dialog.cc')
-rw-r--r--src/wx/kdm_dialog.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc
index 0686450fb..d946e1d12 100644
--- a/src/wx/kdm_dialog.cc
+++ b/src/wx/kdm_dialog.cc
@@ -163,12 +163,15 @@ KDMDialog::make_clicked ()
BOOST_FOREACH (shared_ptr<dcpomatic::Screen> i, _screens->screens()) {
if (i->recipient) {
+ dcp::LocalTime const begin(_timing->from(), i->cinema ? i->cinema->utc_offset_hour() : 0, i->cinema ? i->cinema->utc_offset_minute() : 0);
+ dcp::LocalTime const end(_timing->until(), i->cinema ? i->cinema->utc_offset_hour() : 0, i->cinema ? i->cinema->utc_offset_minute() : 0);
+
dcp::EncryptedKDM const kdm = film->make_kdm (
i->recipient.get(),
i->trusted_device_thumbprints(),
_cpl->cpl(),
- dcp::LocalTime(_timing->from(), i->cinema ? i->cinema->utc_offset_hour() : 0, i->cinema ? i->cinema->utc_offset_minute() : 0),
- dcp::LocalTime(_timing->until(), i->cinema ? i->cinema->utc_offset_hour() : 0, i->cinema ? i->cinema->utc_offset_minute() : 0),
+ begin,
+ end,
_output->formulation(),
!_output->forensic_mark_video(),
for_audio
@@ -179,6 +182,9 @@ KDMDialog::make_clicked ()
name_values['c'] = i->cinema->name;
}
name_values['s'] = i->name;
+ name_values['f'] = film->name();
+ name_values['b'] = dcp::LocalTime(begin).date() + " " + dcp::LocalTime(begin).time_of_day(false, false);
+ name_values['e'] = dcp::LocalTime(end).date() + " " + dcp::LocalTime(end).time_of_day(false, false);
kdms.push_back (KDMWithMetadataPtr(new DCPKDMWithMetadata(name_values, i->cinema, kdm)));
}
@@ -196,7 +202,7 @@ KDMDialog::make_clicked ()
return;
}
- pair<shared_ptr<Job>, int> result = _output->make (kdms, film->name(), _timing, bind (&KDMDialog::confirm_overwrite, this, _1));
+ pair<shared_ptr<Job>, int> result = _output->make (kdms, film->name(), bind (&KDMDialog::confirm_overwrite, this, _1));
if (result.first) {
JobManager::instance()->add (result.first);
}