summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-02-09 22:49:47 +0100
committerCarl Hetherington <cth@carlh.net>2023-02-10 10:31:15 +0100
commitfbdfc901498605f89f28a57d595df966bddc4eb1 (patch)
tree41f046cc60ee9ab11cbb391d0afce114bbd685d2 /src/wx
parentead33f1db9657b3af93ec966d7bbc24218b6fba0 (diff)
Cleanup: add Content::period().
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/timeline.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc
index 0d7ae7afb..2b8fba6fd 100644
--- a/src/wx/timeline.cc
+++ b/src/wx/timeline.cc
@@ -330,7 +330,7 @@ place (shared_ptr<const Film> film, TimelineViewList& views, int& tracks)
int t = base;
auto content = cv->content();
- DCPTimePeriod const content_period (content->position(), content->end(film));
+ DCPTimePeriod const content_period = content->period(film);
while (true) {
auto j = views.begin();
@@ -344,7 +344,8 @@ place (shared_ptr<const Film> film, TimelineViewList& views, int& tracks)
auto test_content = test->content();
if (
test->track() && test->track().get() == t &&
- content_period.overlap(DCPTimePeriod(test_content->position(), test_content->end(film)))) {
+ content_period.overlap(test_content->period(film))
+ ) {
/* we have an overlap on track `t' */
++t;
break;