summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-02-27 23:45:46 +0100
committerCarl Hetherington <cth@carlh.net>2022-03-09 17:04:02 +0100
commit566d282b5c3105b175088b0df308f1dab85279e2 (patch)
treeb4491f6b5e318004b149d66d925cf0b6ec45b2ff /src/lib
parentdf32940ed20af828db106d57120e4bbde0855bac (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')
-rw-r--r--src/lib/writer.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc
index 8b51eb587..f14ef49ef 100644
--- a/src/lib/writer.cc
+++ b/src/lib/writer.cc
@@ -629,6 +629,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());