X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fempty.cc;h=68a153b0755d39a4869781847f12451fe042a4f8;hb=e4e9c64571ac54b40c752529b69332d1645c9004;hp=98bf1f3d186e2619d864706e82dbebde22b2b108;hpb=19c8f785894306bfa7998775d462f7f80cde8eaf;p=dcpomatic.git diff --git a/src/lib/empty.cc b/src/lib/empty.cc index 98bf1f3d1..68a153b07 100644 --- a/src/lib/empty.cc +++ b/src/lib/empty.cc @@ -34,16 +34,16 @@ using boost::shared_ptr; using boost::dynamic_pointer_cast; using boost::function; -Empty::Empty (shared_ptr film, function (Content *)> part) +Empty::Empty (ContentList content, DCPTime length, function (Content *)> part) { list full; - BOOST_FOREACH (shared_ptr i, film->content()) { + BOOST_FOREACH (shared_ptr i, content) { if (part (i.get())) { full.push_back (DCPTimePeriod (i->position(), i->end())); } } - _periods = subtract (DCPTimePeriod(DCPTime(), film->length()), coalesce(full)); + _periods = subtract (DCPTimePeriod(DCPTime(), length), coalesce(full)); if (!_periods.empty ()) { _position = _periods.front().from;