13
0

Fix consolidating to FLAC file(s)

FLAC file needs to be re-opened read-only. FLAC files do not have a
read/write mode.
This commit is contained in:
Robin Gareus 2022-05-30 20:46:23 +02:00
parent 5658e18815
commit ce7d8ed8a1
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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<MidiSource>(*src))) {
Source::WriterLock lock (ms->mutex());