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:
parent
52d488e2ce
commit
ddb9484994
@ -79,6 +79,8 @@ ExportChannelConfiguration::set_state (const XMLNode& root)
|
|||||||
std::string str;
|
std::string str;
|
||||||
if (root.get_property ("region-processing", str)) {
|
if (root.get_property ("region-processing", str)) {
|
||||||
set_region_processing_type ((RegionExportChannelFactory::Type) string_2_enum (str, RegionExportChannelFactory::Type));
|
set_region_processing_type ((RegionExportChannelFactory::Type) string_2_enum (str, RegionExportChannelFactory::Type));
|
||||||
|
} else {
|
||||||
|
set_region_processing_type (RegionExportChannelFactory::None);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* load old state, if any */
|
/* load old state, if any */
|
||||||
|
Loading…
Reference in New Issue
Block a user