diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-02-09 22:49:47 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-10 10:31:15 +0100 |
| commit | fbdfc901498605f89f28a57d595df966bddc4eb1 (patch) | |
| tree | 41f046cc60ee9ab11cbb391d0afce114bbd685d2 /src/lib/overlaps.cc | |
| parent | ead33f1db9657b3af93ec966d7bbc24218b6fba0 (diff) | |
Cleanup: add Content::period().
Diffstat (limited to 'src/lib/overlaps.cc')
| -rw-r--r-- | src/lib/overlaps.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/overlaps.cc b/src/lib/overlaps.cc index 770882cd5..fbc6b5cb1 100644 --- a/src/lib/overlaps.cc +++ b/src/lib/overlaps.cc @@ -33,7 +33,7 @@ ContentList overlaps (shared_ptr<const Film> film, ContentList cl, function<bool ContentList overlaps; DCPTimePeriod period (from, to); for (auto i: cl) { - if (part(i) && DCPTimePeriod(i->position(), i->end(film)).overlap(period)) { + if (part(i) && i->period(film).overlap(period)) { overlaps.push_back (i); } } |
