X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fempty.cc;h=c145c231bc02c1cef932282602aa7f8e0b27ce5b;hb=d1957e43ef4a3966e35b9f28b8faf96e925d2310;hp=71bf3aa956072d27aa9f50bd40f14e6a971395d8;hpb=67775a6d0d28131b98ae284c7be23d79ccdab685;p=dcpomatic.git diff --git a/src/lib/empty.cc b/src/lib/empty.cc index 71bf3aa95..c145c231b 100644 --- a/src/lib/empty.cc +++ b/src/lib/empty.cc @@ -36,7 +36,7 @@ using boost::dynamic_pointer_cast; using boost::function; using namespace dcpomatic; -Empty::Empty (shared_ptr film, shared_ptr playlist, function)> part) +Empty::Empty (shared_ptr film, shared_ptr playlist, function)> part, DCPTime length) { list full; BOOST_FOREACH (shared_ptr i, playlist->content()) { @@ -45,7 +45,7 @@ Empty::Empty (shared_ptr film, shared_ptr playlist, } } - _periods = subtract (DCPTimePeriod(DCPTime(), playlist->length(film)), coalesce(full)); + _periods = subtract (DCPTimePeriod(DCPTime(), length), coalesce(full)); if (!_periods.empty ()) { _position = _periods.front().from;