mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
filter-chain: fix max biquad check
This commit is contained in:
parent
34bca4a007
commit
b3d9b4bb9e
1 changed files with 2 additions and 2 deletions
|
|
@ -1694,7 +1694,7 @@ static int load_eq_bands(struct param_eq_impl *impl, const char *filename)
|
|||
FILE *f = NULL;
|
||||
char *line = NULL;
|
||||
ssize_t nread;
|
||||
size_t linelen, n = 0;
|
||||
size_t linelen;
|
||||
uint32_t freq;
|
||||
char filter_type[4];
|
||||
char filter[4];
|
||||
|
|
@ -1726,7 +1726,7 @@ static int load_eq_bands(struct param_eq_impl *impl, const char *filename)
|
|||
}
|
||||
/* Read the filter bands */
|
||||
while ((nread = getline(&line, &linelen, f)) != -1) {
|
||||
if (n == PARAM_EQ_MAX) {
|
||||
if (impl->n_bq == PARAM_EQ_MAX) {
|
||||
res = -ENOSPC;
|
||||
goto exit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue