aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_vorbis_encoder.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-10-01 23:17:13 +0200
committerMax Kellermann <max@duempel.org>2012-10-02 00:18:18 +0200
commit43d82520502bc0c76fbd11d6e949739235166021 (patch)
tree3157bfc6f63a293509d2f3ca581f11bb6af02267 /test/test_vorbis_encoder.c
parent674b4ab64735dac3b8113e09db4cdb9072ddacb7 (diff)
downloadmpd-43d82520502bc0c76fbd11d6e949739235166021.tar.gz
mpd-43d82520502bc0c76fbd11d6e949739235166021.tar.xz
mpd-43d82520502bc0c76fbd11d6e949739235166021.zip
output/recorder, test/*: invoke encoder_read() after _open()
Make sure the file header gets written at the beginning, before _write() gets called.
Diffstat (limited to 'test/test_vorbis_encoder.c')
-rw-r--r--test/test_vorbis_encoder.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_vorbis_encoder.c b/test/test_vorbis_encoder.c
index 048d26f0a..619399159 100644
--- a/test/test_vorbis_encoder.c
+++ b/test/test_vorbis_encoder.c
@@ -67,6 +67,8 @@ main(G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv)
success = encoder_open(encoder, &audio_format, NULL);
assert(success);
+ encoder_to_stdout(encoder);
+
/* write a block of data */
success = encoder_write(encoder, zero, sizeof(zero), NULL);