mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
for files imported without copy, _origin is a full path. We should use this when looking for the file at session load
This commit is contained in:
parent
9faf3e5556
commit
dbf86a495b
1 changed files with 9 additions and 1 deletions
|
|
@ -131,7 +131,10 @@ AudioFileSource::AudioFileSource (Session& s, const string& path, Source::Flag f
|
|||
}
|
||||
|
||||
|
||||
/** Constructor used for existing internal-to-session files via XML. File must exist. */
|
||||
/** Constructor used for existing files via XML. File must exist. If _origin
|
||||
* is an absolute path after ::set_state(), then the file is external to the
|
||||
* session.
|
||||
*/
|
||||
AudioFileSource::AudioFileSource (Session& s, const XMLNode& node, bool must_exist)
|
||||
: Source (s, node)
|
||||
, AudioSource (s, node)
|
||||
|
|
@ -141,6 +144,11 @@ AudioFileSource::AudioFileSource (Session& s, const XMLNode& node, bool must_exi
|
|||
throw failed_constructor ();
|
||||
}
|
||||
|
||||
if (Glib::path_is_absolute (_origin)) {
|
||||
_path = _origin;
|
||||
must_exist = true;
|
||||
}
|
||||
|
||||
if (init (_path, must_exist)) {
|
||||
throw failed_constructor ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue