examples/filtering: fix deprecated function calls warnings.