Skip to content

Commit

Permalink
Fix crash with clap plugins without MIDI input
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Oct 23, 2023
1 parent ade014c commit 41f07e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/backend/plugin/CarlaPluginCLAP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2158,7 +2158,7 @@ class CarlaPluginCLAP : public CarlaPlugin,

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);
Expand Down

0 comments on commit 41f07e1

Please sign in to comment.