From ce7d8ed8a197b4e39eb826ae968a089de706d79a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 30 May 2022 20:46:23 +0200 Subject: [PATCH] Fix consolidating to FLAC file(s) FLAC file needs to be re-opened read-only. FLAC files do not have a read/write mode. --- libs/ardour/session.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index a57f7d1d29..d73bf0d4fa 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -6079,6 +6079,7 @@ Session::write_one_track (Track& track, samplepos_t start, samplepos_t end, if (afs) { afs->update_header (position, *xnow, now); afs->flush_header (); + afs->mark_immutable (); plist.add (Properties::start, timepos_t (0)); } else if ((ms = boost::dynamic_pointer_cast(*src))) { Source::WriterLock lock (ms->mutex());