test/DumpDecoderClient: use STDOUT_FILENO

This commit is contained in:
Max Kellermann 2018-02-17 08:33:01 +01:00
parent 6d01ee9284
commit 03700ad37c

View File

@ -101,7 +101,7 @@ DumpDecoderClient::SubmitData(gcc_unused InputStream *is,
fprintf(stderr, "%u kbit/s\n", kbit_rate);
}
gcc_unused ssize_t nbytes = write(1, data, datalen);
gcc_unused ssize_t nbytes = write(STDOUT_FILENO, data, datalen);
return DecoderCommand::NONE;
}