VST3: fix runloop query (amend 83207e04e7)

The plugin itself needs to be able to return a runloop,
for the UI, even if the factory has one.
This commit is contained in:
Robin Gareus 2024-08-27 21:56:17 +02:00
parent 8fd081679d
commit c77d2d42b9
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -1517,6 +1517,12 @@ VST3PI::queryInterface (const TUID _iid, void** obj)
QUERY_INTERFACE (_iid, obj, IPlugFrame::iid, IPlugFrame)
#if SMTG_OS_LINUX
if (FUnknownPrivate::iidEqual (_iid, Linux::IRunLoop::iid)) {
return HostApplication::getHostContext()->queryInterface (_iid, obj);
}
#endif
if (DEBUG_ENABLED (DEBUG::VST3Config)) {
char fuid[33];
FUID::fromTUID (_iid).toString (fuid);