diff options
Diffstat (limited to 'src/servers/coopgamma.c')
-rw-r--r-- | src/servers/coopgamma.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/servers/coopgamma.c b/src/servers/coopgamma.c index 26b000d..4e126cf 100644 --- a/src/servers/coopgamma.c +++ b/src/servers/coopgamma.c @@ -188,6 +188,10 @@ static ssize_t add_filter(struct output* restrict out, struct filter* restrict f memmove(out->table_sums + i + 1, out->table_sums + i, (n - i) * sizeof(*(out->table_sums))); out->table_size++; + out->table_filters[i] = *filter; + filter->class = NULL; + filter->ramps = NULL; + COPY_RAMP_SIZES(&(out->table_sums[i].u8), out); switch (out->depth) { @@ -203,10 +207,6 @@ static ssize_t add_filter(struct output* restrict out, struct filter* restrict f if (r < 0) return -1; - out->table_filters[i] = *filter; - filter->class = NULL; - filter->ramps = NULL; - return (ssize_t)i; } |