int BufferSrcFilterContext::reinit(const Filter &filter, const string &name) { if (isFilterValid(filter)) { return reinitInt(filter, name); } clog << "You pass invalid filter for context: " << (filter.isValid() ? filter.getName() : "(null)") << endl; return -1; }
bool BufferSrcFilterContext::isFilterValid(const Filter &filter) { if (filter.isValid()) { if (filter.getName() == "buffer" || filter.getName() == "abuffer") { return true; } } return false; }