Close files at rec-stop (re-open as needed)
authorRobin Gareus <robin@gareus.org>
Wed, 7 Nov 2018 18:13:03 +0000 (19:13 +0100)
committerRobin Gareus <robin@gareus.org>
Wed, 7 Nov 2018 18:13:03 +0000 (19:13 +0100)
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

index c1aa50d4a47f3c069fb8674d44cab06d26c797a9..37af5b8c38233a85726acb9fd60e6074b81283e0 100644 (file)
@@ -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();
        }
 }