Browse Source

Ignore LRDF port if type is 0

tags/1.9.7
falkTX 8 years ago
parent
commit
3bff316546
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      source/utils/CarlaLadspaUtils.hpp

+ 4
- 0
source/utils/CarlaLadspaUtils.hpp View File

@@ -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]);


Loading…
Cancel
Save