summaryrefslogtreecommitdiff
path: root/libs/ardour/export_profile_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/export_profile_manager.cc')
-rw-r--r--libs/ardour/export_profile_manager.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/ardour/export_profile_manager.cc b/libs/ardour/export_profile_manager.cc
index 521f72747f..40160d1ada 100644
--- a/libs/ardour/export_profile_manager.cc
+++ b/libs/ardour/export_profile_manager.cc
@@ -38,6 +38,7 @@
#include "ardour/filename_extensions.h"
#include "ardour/route.h"
#include "ardour/session.h"
+#include "ardour/broadcast_info.h"
#include "i18n.h"
@@ -122,7 +123,14 @@ ExportProfileManager::prepare_for_export ()
++format_it, ++filename_it) {
// filename->include_timespan = (ts_list->size() > 1); Disabled for now...
- handler->add_export_config (*ts_it, channel_config, (*format_it)->format, (*filename_it)->filename);
+
+ boost::shared_ptr<BroadcastInfo> b;
+ if ((*format_it)->format->has_broadcast_info()) {
+ b.reset (new BroadcastInfo);
+ b->set_from_session (session, (*ts_it)->get_start());
+ }
+
+ handler->add_export_config (*ts_it, channel_config, (*format_it)->format, (*filename_it)->filename, b);
}
}
}