mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pw-cat: allow latency=none
This commit is contained in:
parent
125f1f109c
commit
b3d0aa6f8c
1 changed files with 1 additions and 1 deletions
|
|
@ -1169,7 +1169,7 @@ static int setup_sndfile(struct data *data)
|
|||
return -EINVAL;
|
||||
}
|
||||
data->latency_value = atoi(data->latency);
|
||||
if (!data->latency_value) {
|
||||
if (!data->latency_value && data->latency_unit != unit_none) {
|
||||
fprintf(stderr, "error: bad latency value %s (is zero)\n", data->latency);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue