add: if (filename.find(',') != string::npos) { cerr << "Error: Unable to handle filenames with commas. Exiting...\n"; return -1; }
context: int ecicpp_add_input(ECA_CONTROL_INTERFACE* eci, const string& filename, string* format){  eci->command("ai-add " + filename);  bool error = eci->error();  eci->command("ai-list");  if (error == true || eci->last_string_list().size() != 1) {    cerr << eci->last_error() << endl;    cerr << "---\nError while processing file " << filename << ". Exiting...\n";    return -1;  }    /* we must connect to get correct input format */  eci->command("ao-add null");  eci->command("cs-connect");    eci->command("ai-iselect 1");  eci->command("ai-get-format");  *format = eci->last_string();  /* disconnect and remove the null output */  eci->command("cs-disconnect");  eci->command("ao-iselect 1");  eci->command("ao-remove");  return 0;}