mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Log failed calls to IComponent::queryInterface()
This commit is contained in:
@@ -30,10 +30,13 @@ YaComponentPluginImpl::~YaComponentPluginImpl() {
|
|||||||
|
|
||||||
tresult PLUGIN_API
|
tresult PLUGIN_API
|
||||||
YaComponentPluginImpl::queryInterface(const Steinberg::TUID _iid, void** obj) {
|
YaComponentPluginImpl::queryInterface(const Steinberg::TUID _iid, void** obj) {
|
||||||
// TODO: Log when this fails on debug level 1, and on debug level 2 also log
|
const tresult result = YaComponent::queryInterface(_iid, obj);
|
||||||
// successful queries. This behaviour should be implemented for all
|
if (result != Steinberg::kResultOk) {
|
||||||
// interfaces.
|
bridge.logger.log_unknown_interface("In IComponent::queryInterface()",
|
||||||
return YaComponent::queryInterface(_iid, obj);
|
Steinberg::FUID::fromTUID(_iid));
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
tresult PLUGIN_API YaComponentPluginImpl::initialize(FUnknown* context) {
|
tresult PLUGIN_API YaComponentPluginImpl::initialize(FUnknown* context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user