13
0

fix #4443 - tape track files need to be created when opened, not when written to

git-svn-id: svn://localhost/ardour2/branches/3.0@11363 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-01-27 17:08:39 +00:00
parent 33c61757fc
commit 27747a6ee2

View File

@ -144,8 +144,14 @@ SndFileSource::SndFileSource (Session& s, const string& path, const string& orig
_info.samplerate = rate;
_info.format = fmt;
/* do not open the file here - do that in write_unlocked() as needed
*/
if (_flags & Destructive) {
if (open()) {
throw failed_constructor();
}
} else {
/* normal mode: do not open the file here - do that in write_unlocked() as needed
*/
}
}
void