From 4fcceb85cbf029d65b26d18042c7bfe4ad326b2a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 7 Jun 2018 16:34:44 +0100 Subject: [PATCH] Check that we're not about to deadlock if the queue is full and we can't repeat-write. --- src/lib/writer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/writer.cc b/src/lib/writer.cc index 39d6f6118..b135f4321 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -342,6 +342,8 @@ try break; } + DCPOMATIC_ASSERT (_queue.size() < _maximum_queue_size); + /* Nothing to do: wait until something happens which may indicate that we do */ LOG_TIMING (N_("writer-sleep queue=%1"), _queue.size()); _empty_condition.wait (lock); -- 2.30.2