summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/silentfilesource.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-10-11 22:05:27 +0200
committerRobin Gareus <robin@gareus.org>2016-10-11 22:05:27 +0200
commitfeed9648e19f5750b102a161a1028bb143ea16c5 (patch)
tree7067d5b453bc4d90b95e269cd9e4680fc1b943e3 /libs/ardour/ardour/silentfilesource.h
parentc60b4ff4cb842bc2fa1fe79b5e49181d1d067c7f (diff)
Allow loading sessions with missing external files #7067
The issue was introduced in dbf86a495b, forcing must_exist = true for *all* files that have a absolute _origin, including stub SilentFileSources. If an external file is no longer available and a user chooses to "ignore, skip" an SilentFile is created instead of the actual source, The SilentFileSource has the same XML state which includes _origin. ARDOUR::SilentFileSource::SilentFileSource () c'tor calls AudioFileSource::AudioFileSource (,.., must_exit = false) but since the file has an absolute _origin, the AudioFileSource c'tor sets must_exist = true; throws and the session cannot be loaded.
Diffstat (limited to 'libs/ardour/ardour/silentfilesource.h')
-rw-r--r--libs/ardour/ardour/silentfilesource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/ardour/silentfilesource.h b/libs/ardour/ardour/silentfilesource.h
index 80f4b361b2..ebc295d08d 100644
--- a/libs/ardour/ardour/silentfilesource.h
+++ b/libs/ardour/ardour/silentfilesource.h
@@ -45,7 +45,7 @@ protected:
SilentFileSource (Session& s, const XMLNode& x, framecnt_t len, float srate)
: Source (s, x)
- , AudioFileSource (s, x, false)
+ , AudioFileSource (s, x, false, true)
, _sample_rate(srate)
{
_length = len;