diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-10-23 14:52:26 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-10-23 14:52:26 +0000 |
commit | 35c6b52c36ca047ada5b1b127128c03049ebfc89 (patch) | |
tree | 0ae4967ae71420d94bf1053dbb44d725689d8734 /libs/ardour/session.cc | |
parent | 506adcb7a2cd237cecdac151fd2682506a55ac89 (diff) |
probable fix for not being able to find audio files in a 2.X session that had "illegal" characters in the session name - adds the 2.X version of the search path to the audio file search path, if it exists
git-svn-id: svn://localhost/ardour2/branches/3.0@13321 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index e742dd372f..8c36f95726 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -4352,6 +4352,13 @@ Session::source_search_path (DataType type) const } } + if (type == DataType::AUDIO) { + const string sound_path_2X = _session_dir->sound_path_2X(); + if (Glib::file_test (sound_path_2X, Glib::FILE_TEST_EXISTS|Glib::FILE_TEST_IS_DIR)) { + s.push_back (sound_path_2X); + } + } + /* now check the explicit (possibly user-specified) search path */ |