13
0

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
This commit is contained in:
Robin Gareus 2018-11-07 19:13:03 +01:00
parent a58f7caca1
commit 197a1e4446

View 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();
}
}