summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/video_content.cc18
-rw-r--r--src/lib/video_content.h2
2 files changed, 7 insertions, 13 deletions
diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc
index 68db672f1..442ee703c 100644
--- a/src/lib/video_content.cc
+++ b/src/lib/video_content.cc
@@ -67,7 +67,7 @@ VideoContent::VideoContent (shared_ptr<const Film> f)
, _video_frame_type (VIDEO_FRAME_TYPE_2D)
, _scale (VideoContentScale (Ratio::from_id ("178")))
{
- set_default_colour_conversion (false);
+ set_default_colour_conversion ();
}
VideoContent::VideoContent (shared_ptr<const Film> f, DCPTime s, ContentTime len)
@@ -77,7 +77,7 @@ VideoContent::VideoContent (shared_ptr<const Film> f, DCPTime s, ContentTime len
, _video_frame_type (VIDEO_FRAME_TYPE_2D)
, _scale (VideoContentScale (Ratio::from_id ("178")))
{
- set_default_colour_conversion (false);
+ set_default_colour_conversion ();
}
VideoContent::VideoContent (shared_ptr<const Film> f, boost::filesystem::path p)
@@ -87,7 +87,7 @@ VideoContent::VideoContent (shared_ptr<const Film> f, boost::filesystem::path p)
, _video_frame_type (VIDEO_FRAME_TYPE_2D)
, _scale (VideoContentScale (Ratio::from_id ("178")))
{
- set_default_colour_conversion (false);
+ set_default_colour_conversion ();
}
VideoContent::VideoContent (shared_ptr<const Film> f, cxml::ConstNodePtr node, int version)
@@ -203,16 +203,10 @@ VideoContent::as_xml (xmlpp::Node* node) const
}
void
-VideoContent::set_default_colour_conversion (bool signal)
+VideoContent::set_default_colour_conversion ()
{
- {
- boost::mutex::scoped_lock lm (_mutex);
- _colour_conversion = ColourConversion (dcp::ColourConversion::srgb_to_xyz ());
- }
-
- if (signal) {
- signal_changed (VideoContentProperty::COLOUR_CONVERSION);
- }
+ boost::mutex::scoped_lock lm (_mutex);
+ _colour_conversion = ColourConversion (dcp::ColourConversion::srgb_to_xyz ());
}
void
diff --git a/src/lib/video_content.h b/src/lib/video_content.h
index 792929419..0e9f20348 100644
--- a/src/lib/video_content.h
+++ b/src/lib/video_content.h
@@ -88,7 +88,7 @@ public:
void set_scale (VideoContentScale);
void unset_colour_conversion (bool signal = true);
void set_colour_conversion (ColourConversion);
- void set_default_colour_conversion (bool signal = true);
+ void set_default_colour_conversion ();
void set_fade_in (ContentTime);
void set_fade_out (ContentTime);