From 5fa419129df45114959df4aedc3b58f2b9797329 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Thu, 7 Jun 2007 03:24:31 +0000 Subject: [PATCH] Use sys::path and SessionDirectory in Session::find_all_sources for portability git-svn-id: svn://localhost/ardour2/trunk@1972 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session_state.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 3d59e3803c..52bdcaf598 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -2508,12 +2508,11 @@ Session::find_all_sources (string path, set& result) continue; } - string path = _path; /* /-terminated */ - path += sound_dir_name; - path += '/'; - path += prop->value(); + sys::path source_path = _session_dir.sound_path (); - result.insert (path); + source_path /= prop->value (); + + result.insert (source_path.to_string ()); } return 0;