From 3bff316546a4b52aa13002f9052c3ab631964dcb Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 26 Dec 2016 22:24:09 +0100 Subject: [PATCH] Ignore LRDF port if type is 0 --- source/utils/CarlaLadspaUtils.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/utils/CarlaLadspaUtils.hpp b/source/utils/CarlaLadspaUtils.hpp index dd4062053..74803821a 100644 --- a/source/utils/CarlaLadspaUtils.hpp +++ b/source/utils/CarlaLadspaUtils.hpp @@ -126,6 +126,10 @@ bool is_ladspa_rdf_descriptor_valid(const LADSPA_RDF_Descriptor* const rdfDescri for (ulong i=0; i < rdfDescriptor->PortCount; ++i) { + // no type set, ignore + if (rdfDescriptor->Ports[i].Type == 0) + continue; + if (! is_ladspa_port_good(rdfDescriptor->Ports[i].Type, descriptor->PortDescriptors[i])) { carla_stderr("WARNING - Plugin has RDF data, but invalid PortTypes: %i != %i", rdfDescriptor->Ports[i].Type, descriptor->PortDescriptors[i]);