From ed227b4fdba9b4fc7f06f6db4830219f14bad358 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 14 Dec 2018 00:58:48 +0000 Subject: swaroop: fix up restart-after-crash. --- src/lib/playlist.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/lib/playlist.cc') diff --git a/src/lib/playlist.cc b/src/lib/playlist.cc index c10235f9b..f530d2ee3 100644 --- a/src/lib/playlist.cc +++ b/src/lib/playlist.cc @@ -68,6 +68,13 @@ Playlist::~Playlist () void Playlist::content_change (weak_ptr weak_film, ChangeType type, weak_ptr content, int property, bool frequent) { + /* Make sure we only hear about atomic changes (e.g. a PENDING always with the DONE/CANCELLED) + Ignore any DONE/CANCELLED that arrives without a PENDING. + */ + if (_checker.send (type, property)) { + return; + } + shared_ptr film = weak_film.lock (); DCPOMATIC_ASSERT (film); -- cgit v1.2.3