summaryrefslogtreecommitdiff
path: root/src/wx/kdm_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-05-04 23:30:23 +0200
committerCarl Hetherington <cth@carlh.net>2020-05-06 20:15:16 +0200
commit4e62980064496060af5a8c6ecab26ddf218aa63a (patch)
treef3cc59c341866280e7998e7599039054a880d6b0 /src/wx/kdm_dialog.cc
parentca56871d4860b8ead384c410fe374c2fa993f88f (diff)
Remove Screen pointer from KDMWithMetadata, preferring to
add metadata to a dcp::NameFormat::Map earlier in the call stack.
Diffstat (limited to 'src/wx/kdm_dialog.cc')
-rw-r--r--src/wx/kdm_dialog.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc
index b067ff04a..f041c16c5 100644
--- a/src/wx/kdm_dialog.cc
+++ b/src/wx/kdm_dialog.cc
@@ -175,7 +175,13 @@ KDMDialog::make_clicked ()
for_audio
);
- screen_kdms.push_back (KDMWithMetadataPtr(new DCPKDMWithMetadata(i, kdm)));
+ dcp::NameFormat::Map name_values;
+ if (i->cinema) {
+ name_values['c'] = i->cinema->name;
+ }
+ name_values['s'] = i->name;
+
+ screen_kdms.push_back (KDMWithMetadataPtr(new DCPKDMWithMetadata(name_values, i->cinema, kdm)));
}
}