diff options
Diffstat (limited to 'src/lib/dcp_content.cc')
| -rw-r--r-- | src/lib/dcp_content.cc | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index 15bcd0b56..cb9dcf53d 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -39,7 +39,10 @@ using std::list; using boost::shared_ptr; using boost::optional; -int const DCPContentProperty::CAN_BE_PLAYED = 600; +int const DCPContentProperty::CAN_BE_PLAYED = 600; +int const DCPContentProperty::REFERENCE_VIDEO = 601; +int const DCPContentProperty::REFERENCE_AUDIO = 602; +int const DCPContentProperty::REFERENCE_SUBTITLE = 603; DCPContent::DCPContent (shared_ptr<const Film> film, boost::filesystem::path p) : Content (film) @@ -209,3 +212,36 @@ DCPContent::set_default_colour_conversion () /* Default to no colour conversion for DCPs */ unset_colour_conversion (); } + +void +DCPContent::set_reference_video (bool r) +{ + { + boost::mutex::scoped_lock lm (_mutex); + _reference_video = r; + } + + signal_changed (DCPContentProperty::REFERENCE_VIDEO); +} + +void +DCPContent::set_reference_audio (bool r) +{ + { + boost::mutex::scoped_lock lm (_mutex); + _reference_audio = r; + } + + signal_changed (DCPContentProperty::REFERENCE_AUDIO); +} + +void +DCPContent::set_reference_subtitle (bool r) +{ + { + boost::mutex::scoped_lock lm (_mutex); + _reference_subtitle = r; + } + + signal_changed (DCPContentProperty::REFERENCE_SUBTITLE); +} |
