13
0

add NULL check for VST audioMasterSizeWindow

This commit is contained in:
Robin Gareus 2016-02-13 00:51:17 +01:00
parent 07cdae3318
commit 4fdd03892d

View File

@ -318,9 +318,11 @@ intptr_t Session::vst_callback (
case audioMasterSizeWindow:
SHOW_CALLBACK ("audioMasterSizeWindow");
plug->state()->width = index;
plug->state()->height = value;
plug->state()->want_resize = 1;
if (plug && plug->state()) {
plug->state()->width = index;
plug->state()->height = value;
plug->state()->want_resize = 1;
}
return 0;
case audioMasterGetSampleRate: