summaryrefslogtreecommitdiff
path: root/libs/ardour/export_graph_builder.cc
diff options
context:
space:
mode:
authorSakari Bergen <sakari.bergen@beatwaves.net>2013-03-17 12:32:48 +0200
committerSakari Bergen <sakari.bergen@beatwaves.net>2013-03-17 12:32:48 +0200
commit8cbb9727e959a744057de387a293aecdce09a62c (patch)
treec7f6fb66b7057dff243ee68364d6778941817a53 /libs/ardour/export_graph_builder.cc
parent2d081e43e197851636c0da3ed46a7b0be97120b0 (diff)
Handle mutiple export files with the same extension but different format.
If multiple filenames have the same extension, append the format name to the filename. This still requires a bit of extra logic to be optimal, as the format name will now be added in some situations where it is not needed. However, this is better than producing a broken file...
Diffstat (limited to 'libs/ardour/export_graph_builder.cc')
-rw-r--r--libs/ardour/export_graph_builder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/export_graph_builder.cc b/libs/ardour/export_graph_builder.cc
index cc7992ecd2..c7875c0b9b 100644
--- a/libs/ardour/export_graph_builder.cc
+++ b/libs/ardour/export_graph_builder.cc
@@ -129,7 +129,7 @@ ExportGraphBuilder::add_config (FileSpec const & config)
// If the sample rate is "session rate", change it to the real value.
// However, we need to copy it to not change the config which is saved...
FileSpec new_config (config);
- new_config.format.reset(new ExportFormatSpecification(*new_config.format));
+ new_config.format.reset(new ExportFormatSpecification(*new_config.format, false));
if(new_config.format->sample_rate() == ExportFormatBase::SR_Session) {
framecnt_t session_rate = session.nominal_frame_rate();
new_config.format->set_sample_rate(ExportFormatBase::nearest_sample_rate(session_rate));