Browse Source

Prevent issues with hosts sending MIDI events where they shouldnt

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.0-RC1
falkTX 3 years ago
parent
commit
066ae08df3
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      source/plugin/carla-lv2.cpp

+ 4
- 0
source/plugin/carla-lv2.cpp View File

@@ -320,6 +320,10 @@ public:


if (event->body.type != fURIs.midiEvent) if (event->body.type != fURIs.midiEvent)
continue; continue;

// anything past this point assumes plugin with MIDI input
CARLA_SAFE_ASSERT_CONTINUE(fPorts.numMidiIns > 0);

if (event->body.size > 4) if (event->body.size > 4)
continue; continue;
if (event->time.frames >= frames) if (event->time.frames >= frames)


Loading…
Cancel
Save