diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2007-06-17 00:46:37 +0000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2007-06-17 00:46:37 +0000 |
commit | b2d26fcb9e51f56a3ff2318042edf22521de7c77 (patch) | |
tree | a004f8d66054da74b331eb588c99fdaa66cdb262 /libs/ardour | |
parent | 238cab01661daba393ae425dc25ebe346d37dd54 (diff) |
Use SessionDirectory and sys::path in Session::peak_path_from_audio_path for portability
git-svn-id: svn://localhost/ardour2/trunk@2003 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/session.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index fd1b7b14b9..b80e09d536 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -2764,13 +2764,11 @@ Session::source_by_path_and_channel (const Glib::ustring& path, uint16_t chn) string Session::peak_path_from_audio_path (string audio_path) const { - string res; + sys::path peakfile_path(_session_dir->peak_path()); - res = peak_dir (); - res += PBD::basename_nosuffix (audio_path); - res += peakfile_suffix; + peakfile_path /= basename_nosuffix (audio_path) + peakfile_suffix; - return res; + return peakfile_path.to_string(); } string |