mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -05:00
jack: only mix when we have input to mix
Avoids a crash when starting ardour6.
This commit is contained in:
parent
ee84f96915
commit
40552a0e91
1 changed files with 1 additions and 1 deletions
|
|
@ -4449,7 +4449,7 @@ static void *get_buffer_input_float(struct port *p, jack_nframes_t frames)
|
||||||
}
|
}
|
||||||
if (n_ptr == 1) {
|
if (n_ptr == 1) {
|
||||||
ptr = mix_ptr[0];
|
ptr = mix_ptr[0];
|
||||||
} else {
|
} else if (n_ptr > 1) {
|
||||||
ptr = p->emptyptr;
|
ptr = p->emptyptr;
|
||||||
mix_function(ptr, mix_ptr, n_ptr, ptr_aligned, frames);
|
mix_function(ptr, mix_ptr, n_ptr, ptr_aligned, frames);
|
||||||
p->zeroed = false;
|
p->zeroed = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue