summaryrefslogtreecommitdiffstats
path: root/src/port.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/port.c')
-rw-r--r--src/port.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/port.c b/src/port.c
index 14d95ff..f37f82a 100644
--- a/src/port.c
+++ b/src/port.c
@@ -34,16 +34,18 @@ slv2_port_get_class(SLV2Plugin* p,
assert(class->num_values == 1);
assert(class->values);
- if (!strcmp((char*)class->values[0], "http://lv2plug.in/ontology#InputControlRatePort"))
+ if (!strcmp((char*)class->values[0], "http://lv2plug.in/ontology#ControlRateInputPort"))
return SLV2_CONTROL_RATE_INPUT;
- else if (!strcmp((char*)class->values[0], "http://lv2plug.in/ontology#OutputControlRatePort"))
+ else if (!strcmp((char*)class->values[0], "http://lv2plug.in/ontology#ControlRateOutputPort"))
return SLV2_CONTROL_RATE_OUTPUT;
- else if (!strcmp((char*)class->values[0], "http://lv2plug.in/ontology#InputAudioRatePort"))
+ else if (!strcmp((char*)class->values[0], "http://lv2plug.in/ontology#AudioRateInputPort"))
return SLV2_AUDIO_RATE_INPUT;
- else if (!strcmp((char*)class->values[0], "http://lv2plug.in/ontology#OutputAudioRatePort"))
+ else if (!strcmp((char*)class->values[0], "http://lv2plug.in/ontology#AudioRateOutputPort"))
return SLV2_AUDIO_RATE_OUTPUT;
- else
+ else {
+ fprintf(stderr, "Unknown port class: %s\n", class->values[0]);
return SLV2_UNKNOWN_PORT_CLASS;
+ }
}