Close the input file before writing the final output

This commit is contained in:
Frédéric Mangano 2023-05-28 12:56:06 +09:00
parent 49bb94841e
commit 70500a6aac

View File

@ -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();
}