From 0ac8235fa4addb021c0e05a9c6c19a7d22097458 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 6 Oct 2016 10:37:19 +0100 Subject: Add menu option to select CPL. --- src/lib/dcp.h | 4 +++- src/lib/dcp_content.cc | 7 +++++++ src/lib/dcp_content.h | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/dcp.h b/src/lib/dcp.h index d83f95f37..e2e83e96e 100644 --- a/src/lib/dcp.h +++ b/src/lib/dcp.h @@ -29,12 +29,14 @@ class DCPContent; class DCP { +public: + std::list > cpls () const; + protected: DCP (boost::shared_ptr content) : _dcp_content (content) {} - std::list > cpls () const; boost::shared_ptr _dcp_content; }; diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index 1f844541c..0d36118e7 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -490,3 +490,10 @@ DCPContent::use_template (shared_ptr c) _reference_audio = dc->_reference_audio; _reference_subtitle = dc->_reference_subtitle; } + +void +DCPContent::set_cpl (string id) +{ + boost::mutex::scoped_lock lm (_mutex); + _cpl = id; +} diff --git a/src/lib/dcp_content.h b/src/lib/dcp_content.h index 93a207ed7..21b654c96 100644 --- a/src/lib/dcp_content.h +++ b/src/lib/dcp_content.h @@ -115,6 +115,8 @@ public: bool can_reference_subtitle (std::list &) const; + void set_cpl (std::string id); + boost::optional cpl () const { boost::mutex::scoped_lock lm (_mutex); return _cpl; -- cgit v1.2.3