Do not announce exported MIDI files

This would otherwise trigger ARDOUR::Session::add_source
which will add the external path to as session search location.
This commit is contained in:
Robin Gareus 2022-01-29 16:06:13 +01:00
parent 57a93380b6
commit 01d964b176
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -105,7 +105,7 @@ MidiRegion::do_export (string const& path) const
/* caller must check for pre-existing file */
assert (!path.empty());
assert (!Glib::file_test (path, Glib::FILE_TEST_EXISTS));
newsrc = boost::dynamic_pointer_cast<MidiSource>(SourceFactory::createWritable(DataType::MIDI, _session, path, false, _session.sample_rate()));
newsrc = boost::dynamic_pointer_cast<MidiSource> (SourceFactory::createWritable (DataType::MIDI, _session, path, _session.sample_rate (), false, true));
{
/* Lock our source since we'll be reading from it. write_to() will