diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-01-08 22:22:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-01-08 22:22:01 +0100 |
| commit | 579d18cb7770efe2da03afaf6a33faaf624119e3 (patch) | |
| tree | cc303d8c74e64fff8eb5a663941cac4455154ae9 /src/lib/playlist.cc | |
| parent | dde431cafbb20ed3356ad5592be56af1d4458f46 (diff) | |
| parent | 23590dc430e4ef2351209e30a26ba04fecca2872 (diff) | |
Merge a set of changes which run the OpenGL video updates in a separatev2.15.40
thread, hopefully making things more elegant and robust.
Diffstat (limited to 'src/lib/playlist.cc')
| -rw-r--r-- | src/lib/playlist.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/playlist.cc b/src/lib/playlist.cc index 9e96c693a..48053bbf4 100644 --- a/src/lib/playlist.cc +++ b/src/lib/playlist.cc @@ -111,8 +111,11 @@ Playlist::content_change (weak_ptr<const Film> weak_film, ChangeType type, weak_ } if (changed) { - OrderChanged (); + OrderChange (); } + + /* 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 |
