X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fempty.cc;h=c145c231bc02c1cef932282602aa7f8e0b27ce5b;hb=001ba1644fc6aa54f91fcaaa62ae7e5de2313bc1;hp=1e6e1c3fb51d21e76b1d7f2c8b058bb97040a2e1;hpb=1938b1b08d38fc199717d1875a61ef05e5b965de;p=dcpomatic.git diff --git a/src/lib/empty.cc b/src/lib/empty.cc index 1e6e1c3fb..c145c231b 100644 --- a/src/lib/empty.cc +++ b/src/lib/empty.cc @@ -34,13 +34,14 @@ using std::list; using boost::shared_ptr; using boost::dynamic_pointer_cast; using boost::function; +using namespace dcpomatic; -Empty::Empty (list > pieces, DCPTime length, function)> part) +Empty::Empty (shared_ptr film, shared_ptr playlist, function)> part, DCPTime length) { list full; - BOOST_FOREACH (shared_ptr i, pieces) { + BOOST_FOREACH (shared_ptr i, playlist->content()) { if (part(i)) { - full.push_back (DCPTimePeriod (i->content->position(), i->content->end())); + full.push_back (DCPTimePeriod (i->position(), i->end(film))); } }