diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-06-10 17:19:12 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-06-10 17:19:12 +0000 |
commit | 671e116ea78a5d502e920cd501b4b28c3a7d8af3 (patch) | |
tree | b765e048a7d56b5925b4e30dc0620786c297e47c /libs/ardour/session.cc | |
parent | d3cb24130925ff9ea5976960a0359ae566ef41dc (diff) |
(2) debugging region splitting with nowhiskey_
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3454 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 95bd8c9e75..eb01dffb12 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -2581,6 +2581,8 @@ Session::region_name (string& result, string base, bool newlevel) const cerr << "Session::region_name() searching over " << audio_regions.size() << " existing regions\n"; for (int n = 1; n < 5000; ++n) { + + int nxx = 0; result = subbase; snprintf (buf, sizeof (buf), ".%d", n); @@ -2588,12 +2590,14 @@ Session::region_name (string& result, string base, bool newlevel) const name_taken = false; - for (AudioRegionList::const_iterator i = audio_regions.begin(); i != audio_regions.end(); ++i) { + for (AudioRegionList::const_iterator i = audio_regions.begin(); i != audio_regions.end(); ++i, ++nxx) { if (i->second->name() == result) { name_taken = true; break; } } + + cerr << "\tname search ended after checking " << nxx << " regions\n"; if (!name_taken) { break; |