diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-20 21:22:17 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-16 01:20:38 +0100 |
| commit | 0cb5e386c282ae34dd065e7e294030969645913e (patch) | |
| tree | bac83ad896e18c4f576e60971089fb3288cc8073 /src/lib/dcp_content.h | |
| parent | 4cb6ab669032ef0584fde63e62addfe8a71a484c (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.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/dcp_content.h b/src/lib/dcp_content.h index 8a34c4bbe..a76028a67 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; @@ -278,6 +283,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. */ |
