mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
fixed a few warnings from clang static analysis
This commit is contained in:
parent
0e41d00811
commit
2952ac05e6
3 changed files with 3 additions and 2 deletions
|
|
@ -261,7 +261,7 @@ intptr_t Session::vst_callback (
|
|||
case audioMasterProcessEvents:
|
||||
SHOW_CALLBACK ("amc: audioMasterProcessEvents\n");
|
||||
// VstEvents* in <ptr>
|
||||
if (plug->midi_buffer()) {
|
||||
if (plug && plug->midi_buffer()) {
|
||||
VstEvents* v = (VstEvents*)ptr;
|
||||
for (int n = 0 ; n < v->numEvents; ++n) {
|
||||
VstMidiEvent *vme = (VstMidiEvent*) (v->events[n]->dump);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue