fbfeff416874c307667ad798dab20445e0fc64ca
In rare cases DiskWriter::run() may call finish_capture() concurrently with the butler thread from transport_stopped_wallclock, this can lead to memory corruption (CaptureInfo). Using a Mutex here is not great, but it is not usually contended and better than crashing at rec-stop. We should probably change DiskWrWiter::_was_recording into an atomic bool, and use CAS to prevent concurrent calls.
Please see the Ardour web site at https://ardour.org/ for all documentation..
For information on building ardour:
https://ardour.org/development.html
Description
Languages
C++
56.5%
C
39.6%
JavaScript
1.3%
Lua
0.9%
Python
0.6%
Other
0.9%