summaryrefslogtreecommitdiff
path: root/src/lib/dcp_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-10-20 21:22:17 +0200
committerCarl Hetherington <cth@carlh.net>2026-02-03 21:37:04 +0100
commiteda0b0b0ffecf2d6d67407303a1bd45659ccdfce (patch)
treec57cda863071ca7af8de20ac9bce128b45d93289 /src/lib/dcp_content.h
parent9b841fddd3aa4a1117b03299bce964c5e4b205d9 (diff)
Replace find_and_resolve_cpls() with storing all CPL IDs in DCPContent (sometimes).
In some places we need other details than the ID, but in lots of places this saves some disk searching.
Diffstat (limited to 'src/lib/dcp_content.h')
-rw-r--r--src/lib/dcp_content.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/dcp_content.h b/src/lib/dcp_content.h
index 71d311bf1..34094b4a1 100644
--- a/src/lib/dcp_content.h
+++ b/src/lib/dcp_content.h
@@ -166,6 +166,11 @@ public:
void set_cpl(std::string id);
+ std::vector<std::string> cpls() const {
+ boost::mutex::scoped_lock lm(_mutex);
+ return _cpls;
+ }
+
boost::optional<std::string> cpl() const {
boost::mutex::scoped_lock lm(_mutex);
return _cpl;
@@ -262,6 +267,7 @@ private:
boost::optional<VideoEncoding> _video_encoding;
boost::optional<dcp::ContentKind> _content_kind;
bool _three_d;
+ std::vector<std::string> _cpls;
/** ID of the CPL to use; older metadata might not specify this: in that case
* just use the only CPL.
*/