mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
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:
parent
0bfdc82034
commit
67c75c5a33
1 changed files with 7 additions and 0 deletions
|
|
@ -310,6 +310,13 @@ ExportHandler::finish_timespan ()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fmt->tag()) {
|
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());
|
AudiofileTagger::tag_file(filename, *SessionMetadata::Metadata());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue