summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/engine/LV2ResizeFeature.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/LV2ResizeFeature.hpp b/src/engine/LV2ResizeFeature.hpp
index 0506dd53..b9097833 100644
--- a/src/engine/LV2ResizeFeature.hpp
+++ b/src/engine/LV2ResizeFeature.hpp
@@ -35,12 +35,12 @@ struct ResizeFeature : public Shared::LV2Features::Feature {
size_t size) {
NodeImpl* node = (NodeImpl*)data;
PortImpl* port = node->port_impl(index);
- if (port->context() == Context::MESSAGE) {
- info << "Resizing " << port->path() << " to " << size << " bytes" << endl;
+ switch (port->context()) {
+ case Context::MESSAGE:
port->buffer(0)->resize(size);
port->connect_buffers();
return true;
- } else {
+ default:
// TODO: Implement realtime allocator and support this in audio thread
return false;
}