test/run_{input,output,convert}: switch file descriptors to binary mode

Fixes those programs on Windows.
This commit is contained in:
Max Kellermann
2021-03-08 17:25:57 +01:00
parent d61341c0e3
commit 4d9af9a81b
3 changed files with 7 additions and 0 deletions

View File

@@ -117,6 +117,8 @@ static void
RunOutput(AudioOutput &ao, AudioFormat audio_format,
FileDescriptor in_fd)
{
in_fd.SetBinaryMode();
/* open the audio output */
ao.Enable();