From 4219d4b76c5cd5690b1f4fa0c248d93ced26d05a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 15 Apr 2020 16:17:01 +0200 Subject: Fix length of player output so it can be either the film's length or playlist's length, as appropriate. --- src/lib/empty.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/empty.cc') 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; -- cgit v1.2.3