13
0

check whether a source with the same path exists in session list not just on disk.

This is intended to catch a potential wierd condition where a source exists as a stub, but has not yet been written to disk,
and then a new source is created with the same path. Currently it is not understood how/when this might happen
This commit is contained in:
Paul Davis 2014-04-13 11:35:49 -04:00
parent b81d57f049
commit 062dd5b71d

View File

@ -3469,6 +3469,13 @@ Session::new_audio_source_name (const string& base, uint32_t nchan, uint32_t cha
existing++;
break;
}
string possible_path = Glib::build_filename (spath, buf);
if (source_by_path (possible_path)) {
existing++;
break;
}
}
if (existing == 0) {