mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -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;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
data->latency_value = atoi(data->latency);
|
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);
|
fprintf(stderr, "error: bad latency value %s (is zero)\n", data->latency);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue