vst3: connectionpoint on ui gets called before view attachment - handled
This commit is contained in:
parent
531868ef84
commit
9759b715d0
@ -2590,6 +2590,7 @@ static Steinberg_tresult controllerIConnectionPointDisconnect(void* thisInterfac
|
|||||||
return Steinberg_kResultFalse;
|
return Steinberg_kResultFalse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This can get called after plugView creation but before attachment, so that ui is not ready
|
||||||
static Steinberg_tresult controllerIConnectionPointNotify(void* thisInterface, struct Steinberg_Vst_IMessage* message) {
|
static Steinberg_tresult controllerIConnectionPointNotify(void* thisInterface, struct Steinberg_Vst_IMessage* message) {
|
||||||
controller *c = (controller *)((char *)thisInterface - offsetof(controller, vtblIConnectionPoint));
|
controller *c = (controller *)((char *)thisInterface - offsetof(controller, vtblIConnectionPoint));
|
||||||
|
|
||||||
@ -2609,9 +2610,9 @@ static Steinberg_tresult controllerIConnectionPointNotify(void* thisInterface, s
|
|||||||
return Steinberg_kResultFalse;
|
return Steinberg_kResultFalse;
|
||||||
|
|
||||||
for (size_t i = 0; i < c->viewsCount; i++) {
|
for (size_t i = 0; i < c->viewsCount; i++) {
|
||||||
if (!c->views[i])
|
|
||||||
continue;
|
|
||||||
plugView *v = c->views[i];
|
plugView *v = c->views[i];
|
||||||
|
if (!v || !v->ui)
|
||||||
|
continue;
|
||||||
plugin_ui_receive_from_dsp(v->ui, data, size);
|
plugin_ui_receive_from_dsp(v->ui, data, size);
|
||||||
break; // Assuming there is only 1 view
|
break; // Assuming there is only 1 view
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user