cleaner version of feed9648 -- fixes #7067
authorRobin Gareus <robin@gareus.org>
Tue, 11 Oct 2016 20:57:38 +0000 (22:57 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 11 Oct 2016 20:57:38 +0000 (22:57 +0200)
libs/ardour/audiofilesource.cc

index a25e19ea5ac1aa5b0075a3d49d54f6ca2b07131e..3bf252af3d3d36c6b6193e9f5e10058f7bf3febc 100644 (file)
@@ -131,9 +131,11 @@ AudioFileSource::AudioFileSource (Session& s, const string& path, Source::Flag f
 }
 
 
-/** 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.
+/** Constructor used for sources listed in session-files (XML)
+ * and missing sources (SilentFileSource).
+ *
+ * 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)
@@ -146,7 +148,6 @@ AudioFileSource::AudioFileSource (Session& s, const XMLNode& node, bool must_exi
 
        if (Glib::path_is_absolute (_origin)) {
                _path = _origin;
-               must_exist = true;
        }
 
        if (init (_path, must_exist)) {