Fix audio recording. Better fix needed though.

git-svn-id: svn://localhost/ardour2/branches/3.0@3605 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Sampo Savolainen
2008-07-14 18:57:14 +00:00
parent b8c0a076dd
commit 29401241e3

View File

@@ -543,6 +543,17 @@ AudioFileSource::find (ustring& pathstr, bool must_exist, bool& isnew, uint16_t&
}
}
/* Current find() is unable to parse relative path names to yet non-existant
sources. QuickFix(tm) */
if (keeppath == "") {
if (must_exist) {
error << "AudioFileSource::find(), keeppath = \"\", but the file must exist" << endl;
} else {
keeppath = pathstr;
}
}
_name = pathstr;
_path = keeppath;
ret = true;