Use UID conversion for IsPlugInterfaceSupported

I assume that this would also be necessary here, right?
This commit is contained in:
Robbert van der Helm
2021-01-22 13:50:06 +01:00
parent 4a5c961b63
commit ae0d7263b8
4 changed files with 28 additions and 29 deletions
+20 -21
View File
@@ -271,27 +271,26 @@ Vst3PluginBridge::Vst3PluginBridge()
});
},
[&](const YaPlugInterfaceSupport::IsPlugInterfaceSupported&
request) -> YaPlugInterfaceSupport::
IsPlugInterfaceSupported::Response {
// TODO: For correctness' sake we
// should automatically reject
// queries for interfaces we
// don't yet or can't implement,
// like the ARA interfaces.
if (request.owner_instance_id) {
return plugin_proxies
.at(*request.owner_instance_id)
.get()
.plug_interface_support
->isPlugInterfaceSupported(
request.iid.data());
} else {
return plugin_factory
->plug_interface_support
->isPlugInterfaceSupported(
request.iid.data());
}
},
request)
-> YaPlugInterfaceSupport::IsPlugInterfaceSupported::
Response {
// TODO: For correctness' sake we should
// automatically reject queries for interfaces
// we don't yet or can't implement, like the
// ARA interfaces.
if (request.owner_instance_id) {
return plugin_proxies
.at(*request.owner_instance_id)
.get()
.plug_interface_support
->isPlugInterfaceSupported(
request.iid.get_native_uid().data());
} else {
return plugin_factory->plug_interface_support
->isPlugInterfaceSupported(
request.iid.get_native_uid().data());
}
},
[&](const YaProgress::Start& request)
-> YaProgress::Start::Response {
Steinberg::Vst::IProgress::ID out_id;