From: Carl Hetherington Date: Mon, 29 Nov 2021 22:33:21 +0000 (+0100) Subject: We must make empty sections for content with missing files. X-Git-Tag: checked-for-v2.16.x~159 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=77e7cf0b9b9572d6ec955e1865fd73e72ec7666b We must make empty sections for content with missing files. Fixes full audio buffers with no video in projects with image content (no audio) that have missing files. --- diff --git a/src/lib/empty.cc b/src/lib/empty.cc index f6dcad96f..96d036463 100644 --- a/src/lib/empty.cc +++ b/src/lib/empty.cc @@ -42,7 +42,7 @@ Empty::Empty (shared_ptr film, shared_ptr playlist, { list full; for (auto i: playlist->content()) { - if (part(i)) { + if (part(i) && i->paths_valid()) { full.push_back (DCPTimePeriod(i->position(), i->end(film))); } }