mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
filter-graph: move loop out of the NULL check
This commit is contained in:
parent
eb3d14053d
commit
4b37f3db3d
1 changed files with 40 additions and 39 deletions
|
|
@ -2821,7 +2821,11 @@ static void zeroramp_run(void * Instance, unsigned long SampleCount)
|
||||||
if (out == NULL)
|
if (out == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (in != NULL) {
|
if (in == NULL) {
|
||||||
|
memset(out, 0, SampleCount * sizeof(float));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (n = 0; n < SampleCount; n++) {
|
for (n = 0; n < SampleCount; n++) {
|
||||||
if (impl->mode == 0) {
|
if (impl->mode == 0) {
|
||||||
/* normal mode, finding gaps */
|
/* normal mode, finding gaps */
|
||||||
|
|
@ -2861,9 +2865,6 @@ static void zeroramp_run(void * Instance, unsigned long SampleCount)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
memset(out, 0, SampleCount * sizeof(float));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct spa_fga_descriptor zeroramp_desc = {
|
static const struct spa_fga_descriptor zeroramp_desc = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue