mirror of
https://github.com/fmang/opustags.git
synced 2025-01-15 12:43:17 +01:00
Close the input file before writing the final output
This commit is contained in:
parent
49bb94841e
commit
70500a6aac
@ -613,6 +613,10 @@ static void run_single(const ot::options& opt, const std::string& path_in, const
|
||||
ot::ogg_writer writer(output);
|
||||
writer.path = path_out;
|
||||
process(reader, &writer, opt);
|
||||
|
||||
// Close the input file and finalize the output. When --in-place is specified, some file
|
||||
// systems like SMB require that the input is closed first.
|
||||
input.reset();
|
||||
temporary_output.commit();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user