- export_cd_marker_file (current_timespan, fmt, filepath, CDMarkerTOC);
+ export_cd_marker_file (current_timespan, fmt, filename, CDMarkerTOC);
+ }
+
+ if (fmt->with_mp4chaps()) {
+ export_cd_marker_file (current_timespan, fmt, filename, MP4Chaps);
+ }
+
+ Session::Exported (current_timespan->name(), filename); /* EMIT SIGNAL */
+
+ /* 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()) {
+ /* TODO: check Umlauts and encoding in filename.
+ * TagLib eventually calls CreateFileA(),
+ */
+ export_status->active_job = ExportStatus::Tagging;
+ AudiofileTagger::tag_file(filename, *SessionMetadata::Metadata());