diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-10-13 11:30:30 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-13 11:30:30 +0100 |
| commit | 6f23b55a7783f93549115a133ca2e6e938bd0cd1 (patch) | |
| tree | 6c674d088eb37dd9d91992366cfa6ddb3e0e69e5 /src/lib/dcp_content.h | |
| parent | f9068dcbfbb09082e29e2a779ef1a7a2f6ee849e (diff) | |
Some attempts to block referencing of DCPs when it is not possible.
Diffstat (limited to 'src/lib/dcp_content.h')
| -rw-r--r-- | src/lib/dcp_content.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/dcp_content.h b/src/lib/dcp_content.h index be12ba534..78c97bec5 100644 --- a/src/lib/dcp_content.h +++ b/src/lib/dcp_content.h @@ -104,6 +104,8 @@ public: return _reference_video; } + bool can_reference_video (std::list<std::string> &) const; + void set_reference_audio (bool r); bool reference_audio () const { @@ -111,6 +113,8 @@ public: return _reference_audio; } + bool can_reference_audio (std::list<std::string> &) const; + void set_reference_subtitle (bool r); bool reference_subtitle () const { @@ -118,11 +122,15 @@ public: return _reference_subtitle; } + bool can_reference_subtitle (std::list<std::string> &) const; + protected: void add_properties (std::list<std::pair<std::string, std::string> >& p) const; private: void read_directory (boost::filesystem::path); + std::list<DCPTimePeriod> reels () const; + template <class T> bool can_reference (std::string overlapping, std::list<std::string>& why_not) const; std::string _name; bool _has_subtitles; |
