Add Content::set_paths().
[dcpomatic.git] / src / lib / content.cc
index b5bae69b684f8a57c50a94dc96803ee74571c15a..21b04c6493aea2f3d2ee0410a788b39a8dc85d04 100644 (file)
@@ -289,6 +289,13 @@ Content::set_path (boost::filesystem::path path)
        signal_changed (ContentProperty::PATH);
 }
 
+void
+Content::set_paths (vector<boost::filesystem::path> paths)
+{
+       _paths = paths;
+       signal_changed (ContentProperty::PATH);
+}
+
 string
 Content::path_summary () const
 {
@@ -327,7 +334,7 @@ Content::reel_split_points () const
 {
        list<DCPTime> t;
        /* XXX: this is questionable; perhaps the position itself should be forced to be on a frame boundary */
-       t.push_back (position().round_up (film()->video_frame_rate()));
+       t.push_back (position().ceil (film()->video_frame_rate()));
        return t;
 }