Use SessionDirectory instead of Session::sound_dir in Session::audio_path_from_name
authorTim Mayberry <mojofunk@gmail.com>
Thu, 7 Jun 2007 03:24:12 +0000 (03:24 +0000)
committerTim Mayberry <mojofunk@gmail.com>
Thu, 7 Jun 2007 03:24:12 +0000 (03:24 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1969 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/session.cc

index 42f0f3b7f2c7ca3110eb030551ff71dae3129183..ed1947451be3ac4a52c7b0ba7d97e5ae41813e4b 100644 (file)
@@ -2911,9 +2911,9 @@ Session::audio_path_from_name (string name, uint32_t nchan, uint32_t chan, bool
 
                for (i = session_dirs.begin(); i != session_dirs.end(); ++i) {
 
-                       spath = (*i).path;
+                       SessionDirectory sdir((*i).path);
 
-                       spath += sound_dir (false);
+                       spath = sdir.sound_path().to_string();
 
                        if (destructive) {
                                if (nchan < 2) {