X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fkdm_dialog.cc;h=5a31501cf27bb3e53a14ddb82e774ebe5db9d557;hp=55b89a37128925841dafbcada17040c9faac4508;hb=910ea473219f2e7c672ad437d458316deca67025;hpb=bd83f1b0e1d8e7aae0af51376dbbb88d5e3f69d0 diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc index 55b89a371..5a31501cf 100644 --- a/src/wx/kdm_dialog.cc +++ b/src/wx/kdm_dialog.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2018 Carl Hetherington + Copyright (C) 2012-2019 Carl Hetherington This file is part of DCP-o-matic. @@ -51,6 +51,7 @@ using std::make_pair; using std::runtime_error; using boost::shared_ptr; using boost::bind; +using boost::optional; KDMDialog::KDMDialog (wxWindow* parent, shared_ptr film) : wxDialog (parent, wxID_ANY, _("Make KDMs")) @@ -151,10 +152,18 @@ KDMDialog::make_clicked () list > screen_kdms; try { - + /* Start off by enabling forensic marking for all */ + optional for_audio; + if (!_output->forensic_mark_audio()) { + /* No forensic marking for audio */ + for_audio = 0; + } else if (_output->forensic_mark_audio_up_to()) { + /* Forensic mark up to this channel; disabled on channels greater than this */ + for_audio = _output->forensic_mark_audio_up_to(); + } screen_kdms = film->make_kdms ( _screens->screens(), _cpl->cpl(), _timing->from(), _timing->until(), _output->formulation(), - !_output->forensic_mark_video(), _output->forensic_mark_audio() ? boost::optional() : 0 + !_output->forensic_mark_video(), for_audio ); } catch (runtime_error& e) {