diff options
author | Sampo Savolainen <v2@iki.fi> | 2008-07-14 18:57:14 +0000 |
---|---|---|
committer | Sampo Savolainen <v2@iki.fi> | 2008-07-14 18:57:14 +0000 |
commit | 29401241e336f62edaa81471d842d4a88e7d1316 (patch) | |
tree | 431ed6091f7eb9aebab683eebd56de18af209a69 /libs/ardour/audiofilesource.cc | |
parent | b8c0a076ddd577506c724975fee4bc5dd6af99c2 (diff) |
Fix audio recording. Better fix needed though.
git-svn-id: svn://localhost/ardour2/branches/3.0@3605 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audiofilesource.cc')
-rw-r--r-- | libs/ardour/audiofilesource.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/ardour/audiofilesource.cc b/libs/ardour/audiofilesource.cc index 026cb3e7c0..0c8e21b503 100644 --- a/libs/ardour/audiofilesource.cc +++ b/libs/ardour/audiofilesource.cc @@ -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; |