mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-05 16:43:52 +01:00
No need to call Flush() on a file opened for read
This commit is contained in:
@@ -202,7 +202,12 @@ int ufile_close(AVIOContext *pb)
|
||||
|
||||
bool success = true;
|
||||
if (f) {
|
||||
success = f->Flush() && f->Close();
|
||||
if (pb->write_flag) {
|
||||
success = f->Flush();
|
||||
}
|
||||
if (success) {
|
||||
success = f->Close();
|
||||
}
|
||||
pb->opaque = nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user