From 41f07e119252b8b14627bec8345cb7304485a815 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 23 Oct 2023 10:04:25 +0200 Subject: [PATCH] Fix crash with clap plugins without MIDI input Signed-off-by: falkTX --- source/backend/plugin/CarlaPluginCLAP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/backend/plugin/CarlaPluginCLAP.cpp b/source/backend/plugin/CarlaPluginCLAP.cpp index 27c25da56..35da2db79 100644 --- a/source/backend/plugin/CarlaPluginCLAP.cpp +++ b/source/backend/plugin/CarlaPluginCLAP.cpp @@ -2158,7 +2158,7 @@ public: for (uint32_t i=0; i < numSysEvents; ++i) { - EngineEvent& event(fInputEvents.defaultPort->port->getEvent(i)); + EngineEvent& event(pData->event.portIn->getEvent(i)); uint32_t eventTime = event.time; CARLA_SAFE_ASSERT_UINT2_CONTINUE(eventTime < frames, eventTime, frames);