Adapt to post 7.0 filter API changes

parent 63193e97
......@@ -811,7 +811,9 @@ vmod_encoder__init(VRT_CTX, struct vmod_brotli_encoder **encp,
}
vfp->pull = vfp_br_pull;
VRT_AddVFP(ctx, vfp);
if (VRT_AddFilter(ctx, vfp, NULL))
// XXX minor leak from allocations above
return;
settings->which = ENC;
settings->quality = quality;
settings->large_win = large_win;
......@@ -893,7 +895,9 @@ vmod_decoder__init(VRT_CTX, struct vmod_brotli_decoder **decp,
}
vfp->pull = vfp_unbr_pull;
VRT_AddVFP(ctx, vfp);
if (VRT_AddFilter(ctx, vfp, NULL))
// XXX minor leak from allocations above
return;
settings->which = DEC;
settings->large_win = large_win;
dec->vfp = vfp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment