X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fvideo_content.cc;h=68db672f1894275b2ff0bbaedb5ca8c1d95435da;hb=ae15eeca8588c6928d7671894db98c2e289fa601;hp=823517bfc0af47103ac146f30cae854b3ebabd79;hpb=a112eeb4d052b1212f94e95efd83a215213da691;p=dcpomatic.git diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc index 823517bfc..68db672f1 100644 --- a/src/lib/video_content.cc +++ b/src/lib/video_content.cc @@ -29,9 +29,9 @@ #include "frame_rate_change.h" #include "log.h" #include "safe_stringstream.h" +#include "raw_convert.h" #include #include -#include #include #include "i18n.h" @@ -59,7 +59,6 @@ using std::setprecision; using boost::shared_ptr; using boost::optional; using boost::dynamic_pointer_cast; -using dcp::raw_convert; VideoContent::VideoContent (shared_ptr f) : Content (f) @@ -393,14 +392,16 @@ VideoContent::video_size_after_3d_split () const } void -VideoContent::unset_colour_conversion () +VideoContent::unset_colour_conversion (bool signal) { { boost::mutex::scoped_lock lm (_mutex); _colour_conversion = boost::optional (); } - signal_changed (VideoContentProperty::COLOUR_CONVERSION); + if (signal) { + signal_changed (VideoContentProperty::COLOUR_CONVERSION); + } } void @@ -539,7 +540,7 @@ VideoContent::processing_description () const DCPOMATIC_ASSERT (film); dcp::Size const container_size = film->frame_size (); - dcp::Size const scaled = scale().size (dynamic_pointer_cast (shared_from_this ()), container_size, container_size, 1); + dcp::Size const scaled = scale().size (dynamic_pointer_cast (shared_from_this ()), container_size, container_size); if (scaled != video_size_after_crop ()) { d << String::compose (