DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit b8f97e1c3fe7208748b297a815c4d086a9fcc593
parent e8e26eef212d2d4993022d54e96e46a533f5e62d
Author: falkTX <falktx@falktx.com>
Date:   Wed,  6 Oct 2021 19:39:56 +0100

Add debug prints for host context

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdistrho/src/DistrhoPluginVST3.cpp | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/distrho/src/DistrhoPluginVST3.cpp b/distrho/src/DistrhoPluginVST3.cpp @@ -2628,6 +2628,8 @@ struct dpf_edit_controller : v3_edit_controller_cpp { v3_host_application** host = nullptr; v3_cpp_obj_query_interface(context, v3_host_application_iid, &host); + d_stdout("dpf_edit_controller::initialize => %p %p | host %p", self, context, host); + // save it for later so we can unref it controller->hostContextFromInitialize = host; @@ -2836,6 +2838,12 @@ struct dpf_edit_controller : v3_edit_controller_cpp { PluginVst3* const vst3 = controller->vst3; DISTRHO_SAFE_ASSERT_RETURN(vst3 != nullptr, nullptr); + d_stdout("dpf_edit_controller::create_view => %p %s | edit-ctrl %p, host %p, factory %p", + self, name, + controller->hostContextFromInitialize, + controller->hostContextFromComponent, + controller->hostContextFromFactory); + // we require a host context for message creation v3_host_application** host = controller->hostContextFromInitialize != nullptr ? controller->hostContextFromInitialize @@ -3352,6 +3360,8 @@ struct dpf_component : v3_component_cpp { if (context != nullptr) v3_cpp_obj_query_interface(context, v3_host_application_iid, &host); + d_stdout("dpf_component::initialize => %p %s | host %p", self, context, host); + // save it for later so we can unref it component->hostContextFromInitialize = host;