From ddb9484994653b50ebe0fc886c873808f7c79ad9 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 22 Jun 2023 23:34:15 +0200 Subject: [PATCH] Safeguard against using RegionExport for default export It is unclear how an existing ExportChannelConfiguration copy can be reused in a different context, but apparently it can happen: https://discourse.ardour.org/t/ardour-exports-flatline-wav-file-no-playhead-movement-through-file/108803/25 --- libs/ardour/export_channel_configuration.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/ardour/export_channel_configuration.cc b/libs/ardour/export_channel_configuration.cc index 44d878b6c4..1a59f1943c 100644 --- a/libs/ardour/export_channel_configuration.cc +++ b/libs/ardour/export_channel_configuration.cc @@ -79,6 +79,8 @@ ExportChannelConfiguration::set_state (const XMLNode& root) std::string str; if (root.get_property ("region-processing", str)) { set_region_processing_type ((RegionExportChannelFactory::Type) string_2_enum (str, RegionExportChannelFactory::Type)); + } else { + set_region_processing_type (RegionExportChannelFactory::None); } /* load old state, if any */