Fix saving Ogg files when path is using URL scheme `file://`

This commit is contained in:
Martchus 2021-08-13 18:11:21 +02:00
parent 2fda0a505d
commit b11869f837
1 changed files with 1 additions and 1 deletions

View File

@ -579,7 +579,7 @@ void OggContainer::internalMakeFile(Diagnostics &diag, AbortableProgressFeedback
// close backups stream; reopen new file as readable stream
backupStream.close();
fileInfo().close();
fileInfo().stream().open(fileInfo().path(), ios_base::in | ios_base::out | ios_base::binary);
fileInfo().stream().open(BasicFileInfo::pathForOpen(fileInfo().path()).data(), ios_base::in | ios_base::out | ios_base::binary);
// update checksums of modified pages
for (auto offset : updatedPageOffsets) {