summaryrefslogtreecommitdiff
path: root/libs/ardour/export_handler.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-02-10 03:01:05 +0100
committerRobin Gareus <robin@gareus.org>2016-02-10 03:01:05 +0100
commitc1642fead82c58e7ca546b375aaf95459a803d96 (patch)
tree0e7fe62415b6183bc887990e6815f3cd8772f955 /libs/ardour/export_handler.cc
parent883a6a3d4e0481d1145e62c995ed937e69245a94 (diff)
Post-export Analysis
Diffstat (limited to 'libs/ardour/export_handler.cc')
-rw-r--r--libs/ardour/export_handler.cc15
1 files changed, 9 insertions, 6 deletions
diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc
index 70c807b7de..6b59afec89 100644
--- a/libs/ardour/export_handler.cc
+++ b/libs/ardour/export_handler.cc
@@ -295,11 +295,12 @@ ExportHandler::command_output(std::string output, size_t size)
void
ExportHandler::finish_timespan ()
{
+ graph_builder->get_analysis_results (export_status->result_map);
+
while (config_map.begin() != timespan_bounds.second) {
ExportFormatSpecPtr fmt = config_map.begin()->second.format;
std::string filename = config_map.begin()->second.filename->get_path(fmt);
-
if (fmt->with_cue()) {
export_cd_marker_file (current_timespan, fmt, filename, CDMarkerCUE);
}
@@ -312,15 +313,17 @@ ExportHandler::finish_timespan ()
export_cd_marker_file (current_timespan, fmt, filename, MP4Chaps);
}
+ /* close file first, otherwise TagLib enounters an ERROR_SHARING_VIOLATION
+ * The process cannot access the file because it is being used.
+ * ditto for post-export and upload.
+ */
+ graph_builder->reset ();
+
if (fmt->tag()) {
- /* close file first, otherwise TagLib enounters an ERROR_SHARING_VIOLATION
- * The process cannot access the file because it is being used.
- *
- * TODO: check Umlauts and encoding in filename.
+ /* TODO: check Umlauts and encoding in filename.
* TagLib eventually calls CreateFileA(),
*/
export_status->active_job = ExportStatus::Tagging;
- graph_builder->reset ();
AudiofileTagger::tag_file(filename, *SessionMetadata::Metadata());
}