diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-11-20 00:53:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-11-20 23:47:03 +0100 |
| commit | 4347d97b703cfddcd322051092ccfcd5b5a6b941 (patch) | |
| tree | 30ee949b1cbf6cf6300c736c4e6663ffbe832616 /src/lib/writer.cc | |
| parent | bea1b9f9c77c721afd15bab392a86343f8d6b83a (diff) | |
Subtitle language handling tweaks; write multiple subtitle languages
to SMPTE extended metadata.
Diffstat (limited to 'src/lib/writer.cc')
| -rw-r--r-- | src/lib/writer.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc index 79e5ad73b..a9700f4f5 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -620,6 +620,11 @@ Writer::finish () cpl->set_main_picture_stored_area (_film->frame_size()); cpl->set_main_picture_active_area (_film->active_area()); + vector<dcp::LanguageTag> sl = _film->subtitle_languages(); + if (sl.size() > 1) { + cpl->set_additional_subtitle_languages(std::vector<dcp::LanguageTag>(sl.begin() + 1, sl.end())); + } + shared_ptr<const dcp::CertificateChain> signer; signer = Config::instance()->signer_chain (); /* We did check earlier, but check again here to be on the safe side */ |
