mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
filtet-chain: set errno on errors
This commit is contained in:
parent
cc4a635b2f
commit
16b7ab29c1
1 changed files with 4 additions and 1 deletions
|
|
@ -590,6 +590,7 @@ static void * convolver_instantiate(const struct fc_descriptor * Descriptor,
|
|||
float gain = 1.0f;
|
||||
unsigned long rate;
|
||||
|
||||
errno = EINVAL;
|
||||
if (config == NULL)
|
||||
return NULL;
|
||||
|
||||
|
|
@ -656,8 +657,10 @@ static void * convolver_instantiate(const struct fc_descriptor * Descriptor,
|
|||
"Consider forcing a filter rate.", rate, SampleRate);
|
||||
}
|
||||
}
|
||||
if (samples == NULL)
|
||||
if (samples == NULL) {
|
||||
errno = ENOENT;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (blocksize <= 0)
|
||||
blocksize = SPA_CLAMP(n_samples, 64, 256);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue