summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-07-26 17:55:52 +0000
committerDavid Robillard <d@drobilla.net>2012-07-26 17:55:52 +0000
commit4be36c5ce657bb865f3ff2284c477b727c2ec2c9 (patch)
tree0c655a23b7fb145f6b07e20bed74fdc66ac24471 /src
parent024d857f0dc239726cc8c042e8b9296e8886af7d (diff)
downloadingen-4be36c5ce657bb865f3ff2284c477b727c2ec2c9.tar.gz
ingen-4be36c5ce657bb865f3ff2284c477b727c2ec2c9.tar.bz2
ingen-4be36c5ce657bb865f3ff2284c477b727c2ec2c9.zip
Process notifications when no events are pending (prevent overflow).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4561 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/server/Context.cpp4
-rw-r--r--src/server/PostProcessor.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/server/Context.cpp b/src/server/Context.cpp
index 745b849f..7d47800f 100644
--- a/src/server/Context.cpp
+++ b/src/server/Context.cpp
@@ -97,8 +97,10 @@ Context::emit_notifications(FrameTime end)
Raul::error("Error unmapping notification key URI\n");
}
} else {
- Raul::error("Error reading from notification ring\n");
+ Raul::error("Error reading body from notification ring\n");
}
+ } else {
+ Raul::error("Error reading header from notification ring\n");
}
}
}
diff --git a/src/server/PostProcessor.cpp b/src/server/PostProcessor.cpp
index 984f69b5..92d49d43 100644
--- a/src/server/PostProcessor.cpp
+++ b/src/server/PostProcessor.cpp
@@ -61,6 +61,8 @@ PostProcessor::process()
Event* ev = _head.get();
if (!ev) {
+ // Process audio thread notifications up until end
+ _engine.process_context().emit_notifications(end_time);
return;
}