#include "ardour/export_handler.h"
-#include <glib/gstdio.h>
+#include <pbd/gstdio_compat.h>
#include <glibmm.h>
#include <glibmm/convert.h>
ExportHandler::~ExportHandler ()
{
- graph_builder->cleanup (export_status->aborted () );
+ graph_builder->cleanup (export_status->aborted () );
}
/** Add an export to the `to-do' list */
}
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.
+ * TagLib eventually calls CreateFileA(),
+ */
+ graph_builder->reset ();
AudiofileTagger::tag_file(filename, *SessionMetadata::Metadata());
}