mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-13 20:09:59 +02:00
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:
@@ -30,7 +30,7 @@ YaPluginFactoryImpl::createInstance(Steinberg::FIDString cid,
|
||||
void** obj) {
|
||||
// Class IDs may be padded with null bytes
|
||||
constexpr size_t uid_size = sizeof(Steinberg::TUID);
|
||||
if (!cid || !_iid || strnlen(_iid, uid_size) < uid_size) {
|
||||
if (!cid || !_iid || !obj || strnlen(_iid, uid_size) < uid_size) {
|
||||
return Steinberg::kInvalidArgument;
|
||||
}
|
||||
|
||||
@@ -62,6 +62,7 @@ YaPluginFactoryImpl::createInstance(Steinberg::FIDString cid,
|
||||
bridge.logger.log_unknown_interface(
|
||||
"In IPluginFactory::createInstance()", uid);
|
||||
|
||||
*obj = nullptr;
|
||||
return Steinberg::kNotImplemented;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user