summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libs/engine/InputPort.cpp6
-rw-r--r--src/progs/ingenuity/ControlGroups.cpp2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/libs/engine/InputPort.cpp b/src/libs/engine/InputPort.cpp
index a0a65d79..bdc6162c 100644
--- a/src/libs/engine/InputPort.cpp
+++ b/src/libs/engine/InputPort.cpp
@@ -151,7 +151,11 @@ InputPort::pre_process(SampleCount nframes, FrameTime start, FrameTime end)
bool do_mixdown = true;
- if (_connections.size() == 0) return;
+ if (_connections.size() == 0) {
+ for (size_t i=0; i < _poly; ++i)
+ _buffers.at(i)->prepare_read(nframes);
+ return;
+ }
for (Connections::iterator c = _connections.begin(); c != _connections.end(); ++c)
(*c)->process(nframes, start, end);
diff --git a/src/progs/ingenuity/ControlGroups.cpp b/src/progs/ingenuity/ControlGroups.cpp
index 9ea60c5d..e6008fae 100644
--- a/src/progs/ingenuity/ControlGroups.cpp
+++ b/src/progs/ingenuity/ControlGroups.cpp
@@ -103,7 +103,7 @@ SliderControlGroup::init(ControlPanel* panel, SharedPtr<PortModel> pm, bool sepa
const SharedPtr<NodeModel> parent = PtrCast<NodeModel>(pm->parent());
- if (parent && parent->plugin()->type() == PluginModel::LV2) {
+ if (parent && parent->plugin() && parent->plugin()->type() == PluginModel::LV2) {
min = slv2_port_get_minimum_value(
parent->plugin()->slv2_plugin(),
slv2_port_by_symbol(pm->path().name().c_str()));