]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
libcupsfilters: Let filterChain() pass through data on empty chain
authorTill Kamppeter <till.kamppeter@gmail.com>
Sun, 14 Nov 2021 23:38:31 +0000 (00:38 +0100)
committerTill Kamppeter <till.kamppeter@gmail.com>
Sun, 14 Nov 2021 23:38:31 +0000 (00:38 +0100)
commit3ee9e7885bcee01a9dc8f79a1fa061ae33ce51c3
treef6c59167c2ab932f3eb077ca2750ec81232ababe
parent455a35943149fce0d975d9577deafe1e19866fcb
libcupsfilters: Let filterChain() pass through data on empty chain

If the supplied filter chain does not contain any filter or only
filter entries with the filter function set to NULL, we pass the data
through unchanged now, we simply not applying any filters.

This can happen when the universal() filter function is called iwth
the same MIME type for the input and for the output format
supplied. In such a case we simply want the data passed through.
cupsfilters/filter.c