Fix messages between directly connecting objects

iZotope plugins will already send messages when connect() is called on
the first object, so this flag has to be set on both host contexts at
the same time.
This commit is contained in:
Robbert van der Helm
2020-12-24 13:58:32 +01:00
parent a86c37a21d
commit 50b50418f4
3 changed files with 8 additions and 2 deletions
@@ -62,7 +62,7 @@ Vst3HostContextProxyImpl::createInstance(Steinberg::TUID /*cid*/,
// Class IDs don't have a meaning here, they just mirrored the interface
// from `IPlugFactory::createInstance()`
constexpr size_t uid_size = sizeof(Steinberg::TUID);
if (!_iid || strnlen(_iid, uid_size) < uid_size) {
if (!_iid || !obj || strnlen(_iid, uid_size) < uid_size) {
return Steinberg::kInvalidArgument;
}
@@ -98,6 +98,8 @@ Vst3HostContextProxyImpl::createInstance(Steinberg::TUID /*cid*/,
"IHostApplication::createInstance() for indirectly "
"connected objects has not yet been implemented"
<< std::endl;
*obj = nullptr;
return Steinberg::kNotImplemented;
}
}