filter-graph: remove useless check

This commit is contained in:
Wim Taymans 2025-05-07 12:55:00 +02:00
parent 2d4af3ced5
commit 37dbf93cc4

View file

@ -256,9 +256,8 @@ static int impl_process(void *object,
if (out[i] == NULL)
continue;
port = i < graph->n_output ? &graph->output[i] : NULL;
if (port && port->desc)
port = &graph->output[i];
if (port->desc)
port->desc->connect_port(*port->hndl, port->port, out[i]);
else
memset(out[i], 0, n_samples * sizeof(float));