output/recorder, test/*: invoke encoder_read() after _open()

Make sure the file header gets written at the beginning, before
_write() gets called.
This commit is contained in:
Max Kellermann
2012-10-01 23:17:13 +02:00
parent 674b4ab647
commit 43d8252050
4 changed files with 15 additions and 0 deletions

View File

@@ -106,6 +106,8 @@ int main(int argc, char **argv)
return 1;
}
encoder_to_stdout(encoder);
/* do it */
while ((nbytes = read(0, buffer, sizeof(buffer))) > 0) {