mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
filter-chain: initialize NULL data for each node
This commit is contained in:
parent
bdae0b2ffa
commit
e0d3092f0a
1 changed files with 7 additions and 2 deletions
|
|
@ -2324,7 +2324,7 @@ static int graph_instantiate(struct graph *graph)
|
|||
const struct fc_descriptor *d;
|
||||
uint32_t i, j, max_samples = impl->quantum_limit;
|
||||
int res;
|
||||
float *sd = impl->silence_data, *dd = impl->discard_data;
|
||||
float *sd, *dd;
|
||||
|
||||
if (graph->instantiated)
|
||||
return 0;
|
||||
|
|
@ -2337,8 +2337,13 @@ static int graph_instantiate(struct graph *graph)
|
|||
|
||||
desc = node->desc;
|
||||
d = desc->desc;
|
||||
if (d->flags & FC_DESCRIPTOR_SUPPORTS_NULL_DATA)
|
||||
if (d->flags & FC_DESCRIPTOR_SUPPORTS_NULL_DATA) {
|
||||
sd = dd = NULL;
|
||||
}
|
||||
else {
|
||||
sd = impl->silence_data;
|
||||
dd = impl->discard_data;
|
||||
}
|
||||
|
||||
for (i = 0; i < node->n_hndl; i++) {
|
||||
pw_log_info("instantiate %s %d rate:%lu", d->name, i, impl->rate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue