From 7f24f7c5f62eb03e99b2ce812022f2fa3cdf05e6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 12 Aug 2012 03:52:29 +0000 Subject: Fix notifications when running as LV2. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4665 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/PostProcessor.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/server/PostProcessor.cpp') diff --git a/src/server/PostProcessor.cpp b/src/server/PostProcessor.cpp index 92d49d43..74493b51 100644 --- a/src/server/PostProcessor.cpp +++ b/src/server/PostProcessor.cpp @@ -51,10 +51,16 @@ PostProcessor::append(ProcessContext& context, Event* first, Event* last) } } +bool +PostProcessor::pending() const +{ + return _head.get() || _engine.process_context().pending_notifications(); +} + void PostProcessor::process() { - const FrameTime end_time = _max_time.get() + 1; + const FrameTime end_time = _max_time.get(); // To avoid a race, we only process up to tail and never write to _tail Event* const tail = _tail.get(); -- cgit v1.2.1