diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-01-29 00:45:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-11 22:26:38 +0100 |
| commit | 20c7c1a0bc0c9c07d70b5d3dcc536a5cd94e8a2c (patch) | |
| tree | 7fdb8f0f6c1dbac69d024093323c739d6bbccb11 /src/wx/kdm_dialog.cc | |
| parent | e18630852de1ac02c23c74cbe7643845b6f4bd17 (diff) | |
Pass make_kdm as a function into kdm_for_screen().
Diffstat (limited to 'src/wx/kdm_dialog.cc')
| -rw-r--r-- | src/wx/kdm_dialog.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc index 2687d1261..f01c47ffb 100644 --- a/src/wx/kdm_dialog.cc +++ b/src/wx/kdm_dialog.cc @@ -174,8 +174,12 @@ KDMDialog::make_clicked () vector<KDMCertificatePeriod> period_checks; + std::function<dcp::DecryptedKDM (dcp::LocalTime, dcp::LocalTime)> make_kdm = [film, this](dcp::LocalTime begin, dcp::LocalTime end) { + return film->make_kdm(_cpl->cpl(), begin, end); + }; + for (auto i: _screens->screens()) { - auto p = kdm_for_screen(film, _cpl->cpl(), i, _timing->from(), _timing->until(), _output->formulation(), !_output->forensic_mark_video(), for_audio, period_checks); + auto p = kdm_for_screen(make_kdm, i, _timing->from(), _timing->until(), _output->formulation(), !_output->forensic_mark_video(), for_audio, period_checks); if (p) { kdms.push_back (p); } |
