From 566d282b5c3105b175088b0df308f1dab85279e2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 27 Feb 2022 23:45:46 +0100 Subject: Don't write a tag with an empty (#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. --- src/lib/writer.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib') 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()); -- cgit v1.2.3