From adbe8c409a17b85ec10eb131fb81e3da9036dcef Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 1 Oct 2012 23:50:50 +0200 Subject: output/{recorder,shout}: call encoder_read() in a loop This is necessary for Ogg packets that span more than one page. --- src/encoder_plugin.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/encoder_plugin.h') diff --git a/src/encoder_plugin.h b/src/encoder_plugin.h index cae0c804..3a42d79f 100644 --- a/src/encoder_plugin.h +++ b/src/encoder_plugin.h @@ -295,6 +295,8 @@ encoder_write(struct encoder *encoder, const void *data, size_t length, /** * Reads encoded data from the encoder. * + * Call this repeatedly until no more data is returned. + * * @param encoder the encoder * @param dest the destination buffer to copy to * @param length the maximum length of the destination buffer -- cgit v1.2.3