filter-chain: use MAX_CONTROLS for control ports

See #2179
This commit is contained in:
Wim Taymans 2022-02-28 20:32:35 +01:00
parent fb04074335
commit 5c44c6cd5c

View file

@ -138,9 +138,9 @@ struct descriptor {
uint32_t n_notify; uint32_t n_notify;
unsigned long input[MAX_PORTS]; unsigned long input[MAX_PORTS];
unsigned long output[MAX_PORTS]; unsigned long output[MAX_PORTS];
unsigned long control[MAX_PORTS]; unsigned long control[MAX_CONTROLS];
unsigned long notify[MAX_PORTS]; unsigned long notify[MAX_CONTROLS];
float default_control[MAX_PORTS]; float default_control[MAX_CONTROLS];
}; };
struct port { struct port {
@ -169,8 +169,8 @@ struct node {
struct port input_port[MAX_PORTS]; struct port input_port[MAX_PORTS];
struct port output_port[MAX_PORTS]; struct port output_port[MAX_PORTS];
struct port control_port[MAX_PORTS]; struct port control_port[MAX_CONTROLS];
struct port notify_port[MAX_PORTS]; struct port notify_port[MAX_CONTROLS];
uint32_t n_hndl; uint32_t n_hndl;
void *hndl[MAX_HNDL]; void *hndl[MAX_HNDL];