From e09913ced72963aa1fbe92ce73b731d4aaf37cd0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 25 Sep 2022 02:46:59 +0200 Subject: [PATCH] Set SMF::open option, do not scan when loading the model --- libs/ardour/smf_source.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc index 7ed604a93f..5924199843 100644 --- a/libs/ardour/smf_source.cc +++ b/libs/ardour/smf_source.cc @@ -88,7 +88,7 @@ SMFSource::SMFSource (Session& s, const string& path, Source::Flag flags) } /* no fd left open here */ } else { - if (open (_path)) { + if (open (_path, 1, false)) { throw failed_constructor (); } _open = true; @@ -117,7 +117,7 @@ SMFSource::SMFSource (Session& s, const string& path) assert (Glib::file_test (_path, Glib::FILE_TEST_EXISTS)); existence_check (); - if (open (_path)) { + if (open (_path, 1, false)) { throw failed_constructor (); } @@ -174,7 +174,7 @@ SMFSource::SMFSource (Session& s, const XMLNode& node, bool must_exist) if (!(_flags & Source::Empty)) { assert (Glib::file_test (_path, Glib::FILE_TEST_EXISTS)); existence_check (); - if (open (_path)) { + if (open (_path, 1, false)) { throw failed_constructor (); } _open = true;