s/use_template/take_settings_from/g
[dcpomatic.git] / src / lib / video_content.cc
index 92219b4c7cf9be404289d09f1be614f10f75144c..d4e814624de8c949a9cd790de392fa536a4986ba 100644 (file)
@@ -529,7 +529,7 @@ VideoContent::set_fade_out (Frame t)
 }
 
 void
-VideoContent::use_template (shared_ptr<const VideoContent> c)
+VideoContent::take_settings_from (shared_ptr<const VideoContent> c)
 {
        _colour_conversion = c->_colour_conversion;
        _frame_type = c->_frame_type;
@@ -544,3 +544,11 @@ VideoContent::modify_position (DCPTime& pos) const
 {
        pos = pos.ceil (_parent->film()->video_frame_rate());
 }
+
+void
+VideoContent::modify_trim_start (ContentTime& trim) const
+{
+       if (_parent->video_frame_rate()) {
+               trim = trim.ceil (_parent->video_frame_rate().get());
+       }
+}