From 77e74702707735f8d39e8d8e9c4cdcfc0e007da6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 6 Mar 2024 18:35:08 +0100 Subject: [PATCH] Vapor: handle export abort --- libs/ardour/export_handler.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc index 8019b2c484..a7f2b4ed9e 100644 --- a/libs/ardour/export_handler.cc +++ b/libs/ardour/export_handler.cc @@ -124,6 +124,9 @@ ExportHandler::ExportHandler (Session & session) ExportHandler::~ExportHandler () { + if (export_status->aborted () && !current_timespan->vapor ().empty () && session.surround_master ()) { + session.surround_master ()->surround_return ()->finalize_export (); + } graph_builder->cleanup (export_status->aborted () ); }