mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
jack: avoid division by 0
This commit is contained in:
parent
54cf394b1b
commit
45c7709bf6
1 changed files with 2 additions and 0 deletions
|
|
@ -5414,6 +5414,8 @@ void jack_port_set_latency_range (jack_port_t *port, jack_latency_callback_mode_
|
|||
latency = SPA_LATENCY_INFO(direction);
|
||||
|
||||
nframes = jack_get_buffer_size((jack_client_t*)c);
|
||||
if (nframes == 0)
|
||||
n_frames = 1;
|
||||
|
||||
latency.min_rate = range->min;
|
||||
if (latency.min_rate >= nframes) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue