X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fempty.cc;h=c145c231bc02c1cef932282602aa7f8e0b27ce5b;hb=2f796cd531de522a3b7ed03a9942f3c55f3a0b5b;hp=68a153b0755d39a4869781847f12451fe042a4f8;hpb=7a3f4f1b6411f7d15bf00e863fb5e70a5d930dd8;p=dcpomatic.git diff --git a/src/lib/empty.cc b/src/lib/empty.cc index 68a153b07..c145c231b 100644 --- a/src/lib/empty.cc +++ b/src/lib/empty.cc @@ -25,6 +25,7 @@ #include "content_part.h" #include "dcp_content.h" #include "dcpomatic_time_coalesce.h" +#include "piece.h" #include #include @@ -33,13 +34,14 @@ using std::list; using boost::shared_ptr; using boost::dynamic_pointer_cast; using boost::function; +using namespace dcpomatic; -Empty::Empty (ContentList content, DCPTime length, function (Content *)> part) +Empty::Empty (shared_ptr film, shared_ptr playlist, function)> part, DCPTime length) { list full; - BOOST_FOREACH (shared_ptr i, content) { - if (part (i.get())) { - full.push_back (DCPTimePeriod (i->position(), i->end())); + BOOST_FOREACH (shared_ptr i, playlist->content()) { + if (part(i)) { + full.push_back (DCPTimePeriod (i->position(), i->end(film))); } }