diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-02-27 23:45:46 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-03-14 00:13:56 +0100 |
| commit | a6163fcbce6c7e69074a3420099111aee6cee1ad (patch) | |
| tree | 1688f831d384788bb4c696b2f42e8215100e98b5 /src/lib/writer.cc | |
| parent | 66b0c743f3b26271f480a012d9dd107c7e09c270 (diff) | |
Don't write a <ContentVersion> tag with an empty <LabelText> (#2191).
I can't see the problem with this, but apparently Dolby
CineInspect complains about it.
We could fix this in libdcp but I think that would make more sense
if this were related to a definite standard violation, instead of
just some tinkering to hide a possibly-incorrect warning.
Diffstat (limited to 'src/lib/writer.cc')
| -rw-r--r-- | src/lib/writer.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc index 6ce0b1f3e..d775fde54 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -628,6 +628,9 @@ Writer::finish (boost::filesystem::path output_dcp) for (auto i: film()->content_versions()) { cv.push_back (dcp::ContentVersion(i)); } + if (cv.empty()) { + cv = { dcp::ContentVersion("1") }; + } cpl->set_content_versions (cv); cpl->set_full_content_title_text (film()->name()); |
