13
0

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
This commit is contained in:
Robin Gareus 2023-06-22 23:34:15 +02:00
parent 52d488e2ce
commit ddb9484994
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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 */