jack: only mix when we have input to mix

Avoids a crash when starting ardour6.
This commit is contained in:
Wim Taymans 2022-07-12 15:10:02 +02:00
parent ee84f96915
commit 40552a0e91

View file

@ -4449,7 +4449,7 @@ static void *get_buffer_input_float(struct port *p, jack_nframes_t frames)
}
if (n_ptr == 1) {
ptr = mix_ptr[0];
} else {
} else if (n_ptr > 1) {
ptr = p->emptyptr;
mix_function(ptr, mix_ptr, n_ptr, ptr_aligned, frames);
p->zeroed = false;