summaryrefslogtreecommitdiff
path: root/src/lib/playlist.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-11-19 17:07:35 +0100
committerCarl Hetherington <cth@carlh.net>2020-01-08 21:56:47 +0100
commit86a866d5f3f5bf2fec67d1c813524479c6727eab (patch)
treed6399fb66872751ed10a0c2db0e143dea32c627e /src/lib/playlist.cc
parent046d84f45621f7e128cb30160a315f98881c6f4b (diff)
Clean up access to stuff from Film.
Diffstat (limited to 'src/lib/playlist.cc')
-rw-r--r--src/lib/playlist.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/playlist.cc b/src/lib/playlist.cc
index 9e96c693a..73a3214d3 100644
--- a/src/lib/playlist.cc
+++ b/src/lib/playlist.cc
@@ -113,6 +113,9 @@ Playlist::content_change (weak_ptr<const Film> weak_film, ChangeType type, weak_
if (changed) {
OrderChanged ();
}
+
+ /* The length might have changed, and that's good enough for this signal */
+ LengthChange ();
}
}
@@ -281,6 +284,8 @@ Playlist::add (shared_ptr<const Film> film, shared_ptr<Content> c)
}
Change (CHANGE_TYPE_DONE);
+
+ LengthChange ();
}
void
@@ -312,6 +317,8 @@ Playlist::remove (shared_ptr<Content> c)
}
/* This won't change order, so it does not need a sort */
+
+ LengthChange ();
}
void
@@ -334,9 +341,11 @@ Playlist::remove (ContentList c)
}
}
+ Change (CHANGE_TYPE_DONE);
+
/* This won't change order, so it does not need a sort */
- Change (CHANGE_TYPE_DONE);
+ LengthChange ();
}
class FrameRateCandidate