mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
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:
parent
b49bb451d2
commit
2e3a84b15a
1 changed files with 7 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue