13
0

Fix LV2 optional connect port logging #9790

This commit is contained in:
Robin Gareus 2024-09-09 16:04:35 +02:00
parent 38349b21dd
commit c0b61d5a28
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -3979,6 +3979,7 @@ LV2PluginInfo::discover (boost::function <void (std::string const&, PluginScanLo
} }
} }
else if (lilv_port_has_property(p, port, world.lv2_connectionOptional)) { else if (lilv_port_has_property(p, port, world.lv2_connectionOptional)) {
LilvNode* name = lilv_port_get_name(p, port);
cb (uri, PluginScanLogEntry::OK, string_compose (_("Ignored optional port %1 ('%2') which has unsupported data type."), i, lilv_node_as_string (name)), false); cb (uri, PluginScanLogEntry::OK, string_compose (_("Ignored optional port %1 ('%2') which has unsupported data type."), i, lilv_node_as_string (name)), false);
} }
else if (!lilv_port_is_a(p, port, world.lv2_AudioPort)) { else if (!lilv_port_is_a(p, port, world.lv2_AudioPort)) {