From fdf2d34c513dcf3ab36295e69e7e0c0766789ded Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 15 Aug 2022 16:54:40 +0200 Subject: Stop assuming that the presence of FullContentTitleText means that there was CPL metadata. --- src/cpl.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/cpl.h') 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 _additional_subtitle_languages; boost::optional _sign_language_video_language; + bool _read_composition_metadata = false; std::vector> _reels; -- cgit v1.2.3