From 5c44c6cd5c25154b18a22f0b21c372c9d77f98c0 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 28 Feb 2022 20:32:35 +0100 Subject: [PATCH] filter-chain: use MAX_CONTROLS for control ports See #2179 --- src/modules/module-filter-chain.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/module-filter-chain.c b/src/modules/module-filter-chain.c index 39dc4f67c..37b18c7fc 100644 --- a/src/modules/module-filter-chain.c +++ b/src/modules/module-filter-chain.c @@ -138,9 +138,9 @@ struct descriptor { uint32_t n_notify; unsigned long input[MAX_PORTS]; unsigned long output[MAX_PORTS]; - unsigned long control[MAX_PORTS]; - unsigned long notify[MAX_PORTS]; - float default_control[MAX_PORTS]; + unsigned long control[MAX_CONTROLS]; + unsigned long notify[MAX_CONTROLS]; + float default_control[MAX_CONTROLS]; }; struct port { @@ -169,8 +169,8 @@ struct node { struct port input_port[MAX_PORTS]; struct port output_port[MAX_PORTS]; - struct port control_port[MAX_PORTS]; - struct port notify_port[MAX_PORTS]; + struct port control_port[MAX_CONTROLS]; + struct port notify_port[MAX_CONTROLS]; uint32_t n_hndl; void *hndl[MAX_HNDL];