mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
filter-chain: bypass convolver when NULL input/output
This commit is contained in:
parent
e281628847
commit
3c221f49a0
1 changed files with 3 additions and 1 deletions
|
|
@ -1073,11 +1073,13 @@ static void convolver_deactivate(void * Instance)
|
|||
static void convolve_run(void * Instance, unsigned long SampleCount)
|
||||
{
|
||||
struct convolver_impl *impl = Instance;
|
||||
if (impl->port[1] != NULL && impl->port[0] != NULL)
|
||||
convolver_run(impl->conv, impl->port[1], impl->port[0], SampleCount);
|
||||
}
|
||||
|
||||
static const struct fc_descriptor convolve_desc = {
|
||||
.name = "convolver",
|
||||
.flags = FC_DESCRIPTOR_SUPPORTS_NULL_DATA,
|
||||
|
||||
.n_ports = 2,
|
||||
.ports = convolve_ports,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue