fix file metadata tagging on windows.

This allows TagLib to open the file and create a Tag object (see 2a0365c)
Tagging still fails later (taglib seek/SetFilePointer fails when writing)
This commit is contained in:
Robin Gareus 2015-07-30 05:28:25 +02:00
parent 0bfdc82034
commit 67c75c5a33

View File

@ -310,6 +310,13 @@ ExportHandler::finish_timespan ()
}
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());
}