mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 12:10:09 +02:00
Check for null pointers in input parameter changes
This is not allowed to be a null pointer, but the SDK's plugin validator will pass a null pointer anyways.
This commit is contained in:
@@ -143,7 +143,12 @@ YaProcessData::YaProcessData(const Steinberg::Vst::ProcessData& process_data)
|
||||
symbolic_sample_size(process_data.symbolicSampleSize),
|
||||
num_samples(process_data.numSamples),
|
||||
outputs_num_channels(process_data.numOutputs),
|
||||
input_parameter_changes(*process_data.inputParameterChanges),
|
||||
// Even though `ProcessData::inputParamterChanges` is mandatory, the VST3
|
||||
// validator will pass a null pointer here
|
||||
input_parameter_changes(
|
||||
process_data.inputParameterChanges
|
||||
? YaParameterChanges(*process_data.inputParameterChanges)
|
||||
: YaParameterChanges()),
|
||||
output_parameter_changes_supported(process_data.outputParameterChanges),
|
||||
input_events(process_data.inputEvents ? std::make_optional<YaEventList>(
|
||||
*process_data.inputEvents)
|
||||
|
||||
Reference in New Issue
Block a user