From 197a1e44463922f09b3c07a643324b5811236ecc Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 7 Nov 2018 19:13:03 +0100 Subject: [PATCH] Close files at rec-stop (re-open as needed) This is in preparation to allow recording .flac files which are either read or write not cannot be in read/write mode --- libs/ardour/file_source.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/ardour/file_source.cc b/libs/ardour/file_source.cc index c1aa50d4a4..37af5b8c38 100644 --- a/libs/ardour/file_source.cc +++ b/libs/ardour/file_source.cc @@ -519,6 +519,7 @@ FileSource::mark_immutable () /* destructive sources stay writable, and their other flags don't change. */ if (!(_flags & Destructive)) { _flags = Flag (_flags & ~(Writable|Removable|RemovableIfEmpty|RemoveAtDestroy|CanRename)); + close(); } }