diff options
Diffstat (limited to 'libs/ardour/file_source.cc')
-rw-r--r-- | libs/ardour/file_source.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libs/ardour/file_source.cc b/libs/ardour/file_source.cc index 6ebbf0b523..08ba0eb23e 100644 --- a/libs/ardour/file_source.cc +++ b/libs/ardour/file_source.cc @@ -70,7 +70,7 @@ FileSource::FileSource (Session& session, const XMLNode& node, bool /*must_exist , _file_is_new (false) { _path = _name; - _is_embedded = (_path.find(PATH_SEP) != string::npos); + set_embedded_from_name(); } bool @@ -103,6 +103,12 @@ FileSource::init (const ustring& pathstr, bool must_exist) return 0; } +void +FileSource::set_embedded_from_name () +{ + _is_embedded = (_name.find(PATH_SEP) != string::npos); +} + int FileSource::set_state (const XMLNode& node, int /*version*/) { @@ -114,7 +120,7 @@ FileSource::set_state (const XMLNode& node, int /*version*/) _channel = 0; } - _is_embedded = (_name.find(PATH_SEP) == string::npos); + set_embedded_from_name(); return 0; } |