mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -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;
|
const struct fc_descriptor *d;
|
||||||
uint32_t i, j, max_samples = impl->quantum_limit;
|
uint32_t i, j, max_samples = impl->quantum_limit;
|
||||||
int res;
|
int res;
|
||||||
float *sd = impl->silence_data, *dd = impl->discard_data;
|
float *sd, *dd;
|
||||||
|
|
||||||
if (graph->instantiated)
|
if (graph->instantiated)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -2337,8 +2337,13 @@ static int graph_instantiate(struct graph *graph)
|
||||||
|
|
||||||
desc = node->desc;
|
desc = node->desc;
|
||||||
d = desc->desc;
|
d = desc->desc;
|
||||||
if (d->flags & FC_DESCRIPTOR_SUPPORTS_NULL_DATA)
|
if (d->flags & FC_DESCRIPTOR_SUPPORTS_NULL_DATA) {
|
||||||
sd = dd = NULL;
|
sd = dd = NULL;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
sd = impl->silence_data;
|
||||||
|
dd = impl->discard_data;
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < node->n_hndl; i++) {
|
for (i = 0; i < node->n_hndl; i++) {
|
||||||
pw_log_info("instantiate %s %d rate:%lu", d->name, i, impl->rate);
|
pw_log_info("instantiate %s %d rate:%lu", d->name, i, impl->rate);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue