Commit 40552a0e authored by Wim Taymans's avatar Wim Taymans
Browse files

jack: only mix when we have input to mix

Avoids a crash when starting ardour6.
parent ee84f969
Pipeline #635734 passed with stages
in 3 minutes and 15 seconds
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment