summaryrefslogtreecommitdiff
path: root/src/cpl.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-08-15 16:54:40 +0200
committerCarl Hetherington <cth@carlh.net>2022-08-15 16:54:40 +0200
commitfdf2d34c513dcf3ab36295e69e7e0c0766789ded (patch)
treeced43a975749b21ec15d4fa5a2b1b7c18b6612f3 /src/cpl.h
parentf13d0a886e36977c13bb41f915e75ad9db8ba850 (diff)
Stop assuming that the presence of FullContentTitleText means that there was CPL metadata.
Diffstat (limited to 'src/cpl.h')
-rw-r--r--src/cpl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cpl.h b/src/cpl.h
index 439aeda0..74bac5f1 100644
--- a/src/cpl.h
+++ b/src/cpl.h
@@ -328,6 +328,13 @@ public:
return _standard;
}
+ /** @return true iff this CPL was read from a file and it contained
+ * a CompositionMetadataAsset node.
+ */
+ bool read_composition_metadata() const {
+ return _read_composition_metadata;
+ }
+
static std::string static_pkl_type (Standard standard);
protected:
@@ -373,6 +380,7 @@ private:
/* See note for _release_territory above */
std::vector<std::string> _additional_subtitle_languages;
boost::optional<std::string> _sign_language_video_language;
+ bool _read_composition_metadata = false;
std::vector<std::shared_ptr<Reel>> _reels;