From f2278392473823eb5fbc4535f2728cac5637a59f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 22 May 2024 19:44:17 +0200 Subject: [PATCH] Vapor: thread-safe export abort Prevent concurrent processing while running finalize_export. --- libs/ardour/export_handler.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc index a7f2b4ed9e..d90c9cfb46 100644 --- a/libs/ardour/export_handler.cc +++ b/libs/ardour/export_handler.cc @@ -125,6 +125,7 @@ ExportHandler::ExportHandler (Session & session) ExportHandler::~ExportHandler () { if (export_status->aborted () && !current_timespan->vapor ().empty () && session.surround_master ()) { + Glib::Threads::Mutex::Lock l (export_status->lock()); session.surround_master ()->surround_return ()->finalize_export (); } graph_builder->cleanup (export_status->aborted () );