diff options
author | Max Kellermann <max@musicpd.org> | 2021-03-08 17:25:57 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2021-03-08 17:27:23 +0100 |
commit | 4d9af9a81bb317585a1dce0620c1bb3468e5a0a6 (patch) | |
tree | a001f31479ba441a78dbde31b9fd03f6386e9c71 /test/run_convert.cxx | |
parent | d61341c0e3769ec4b9bfb7c2f2b0e98cd3834741 (diff) |
test/run_{input,output,convert}: switch file descriptors to binary mode
Fixes those programs on Windows.
Diffstat (limited to 'test/run_convert.cxx')
-rw-r--r-- | test/run_convert.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/run_convert.cxx b/test/run_convert.cxx index 24d64c462..b7a687c03 100644 --- a/test/run_convert.cxx +++ b/test/run_convert.cxx @@ -106,6 +106,9 @@ static void RunConvert(PcmConvert &convert, size_t in_frame_size, FileDescriptor in_fd, FileDescriptor out_fd) { + in_fd.SetBinaryMode(); + out_fd.SetBinaryMode(); + StaticFifoBuffer<std::byte, 4096> buffer; while (true) { |