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:
parent
5658e18815
commit
ce7d8ed8a1
@ -6079,6 +6079,7 @@ Session::write_one_track (Track& track, samplepos_t start, samplepos_t end,
|
|||||||
if (afs) {
|
if (afs) {
|
||||||
afs->update_header (position, *xnow, now);
|
afs->update_header (position, *xnow, now);
|
||||||
afs->flush_header ();
|
afs->flush_header ();
|
||||||
|
afs->mark_immutable ();
|
||||||
plist.add (Properties::start, timepos_t (0));
|
plist.add (Properties::start, timepos_t (0));
|
||||||
} else if ((ms = boost::dynamic_pointer_cast<MidiSource>(*src))) {
|
} else if ((ms = boost::dynamic_pointer_cast<MidiSource>(*src))) {
|
||||||
Source::WriterLock lock (ms->mutex());
|
Source::WriterLock lock (ms->mutex());
|
||||||
|
Loading…
Reference in New Issue
Block a user