From 797648ddcfe72bb428d8355672da3a1b6fac54fc Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 16 Feb 2016 12:15:38 +0000 Subject: Move reel_split_points from VideoContent to Content. --- src/lib/content.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/lib/content.cc') diff --git a/src/lib/content.cc b/src/lib/content.cc index af85e0ff0..2c89f7c34 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -295,3 +295,13 @@ Content::film () const DCPOMATIC_ASSERT (film); return film; } + +/** @return DCP times of points within this content where a reel split could occur */ +list +Content::reel_split_points () const +{ + list 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())); + return t; +} -- cgit v1.2.3