Revert "Allow loading sessions with missing external files #7067"
[ardour.git] / libs / ardour / audiofilesource.cc
index 8e1f50a55dea2ccd3aff80898a9a0d57a98a361b..a25e19ea5ac1aa5b0075a3d49d54f6ca2b07131e 100644 (file)
@@ -135,7 +135,7 @@ AudioFileSource::AudioFileSource (Session& s, const string& path, Source::Flag f
  * 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, bool optional_origin)
+AudioFileSource::AudioFileSource (Session& s, const XMLNode& node, bool must_exist)
        : Source (s, node)
        , AudioSource (s, node)
        , FileSource (s, node, must_exist)
@@ -146,7 +146,7 @@ AudioFileSource::AudioFileSource (Session& s, const XMLNode& node, bool must_exi
 
        if (Glib::path_is_absolute (_origin)) {
                _path = _origin;
-               must_exist = !optional_origin;
+               must_exist = true;
        }
 
        if (init (_path, must_exist)) {