/** \file filter_chain.c common helper functions for filter input/output */
-#include "gcc-compat.h"
#include "para.h"
#include "list.h"
#include "filter.h"
int ret;
if (*loaded && fn->loaded < fn->bufsize) {
size_t old_fn_loaded = fn->loaded;
- PARA_DEBUG_LOG("fc %p loaded: %d, calling %s convert\n", fci, *loaded, fn->filter->name);
+ PARA_DEBUG_LOG("fc %p loaded: %zd, calling %s convert\n", fci, *loaded, fn->filter->name);
ret = fn->filter->convert(ib, *loaded, fn);
if (ret < 0) {
if (!fci->error)
*loaded -= ret;
conv += ret;
if (*loaded && ret) {
- PARA_DEBUG_LOG("moving %d bytes in input buffer for %s filter\n",
+ PARA_DEBUG_LOG("moving %zd bytes in input buffer for %s filter\n",
*loaded, fn->filter->name);
memmove(ib, ib + ret, *loaded);
}
return options? -E_BAD_FILTER_OPTIONS : filter_num;
if (options) {
// PARA_DEBUG_LOG("options: %s\n", options);
- argc = split_args(options, &argv, ':');
+ argc = split_args(options, &argv, ' ');
// PARA_DEBUG_LOG("argc = %d, argv[0]: %s\n", argc, argv[0]);
for (i = argc; i >= 0; i--)
argv[i + 1] = argv[i];
if (strncmp(name, fa, len))
continue;
c = fa[len];
- if (c && c != ':')
+ if (c && c != ' ')
continue;
if (c && !filters[j].parse_config)
return -E_BAD_FILTER_OPTIONS;