aboutsummaryrefslogtreecommitdiff
path: root/src/encoder_plugin.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-10-01 23:50:50 +0200
committerMax Kellermann <max@duempel.org>2012-10-02 00:26:40 +0200
commitadbe8c409a17b85ec10eb131fb81e3da9036dcef (patch)
tree202c2f33d5952fbb572e6da65f47c997e1d5c4c0 /src/encoder_plugin.h
parent58e600f408bed5cfdc9b3cebded108a8593e5b7b (diff)
output/{recorder,shout}: call encoder_read() in a loop
This is necessary for Ogg packets that span more than one page.
Diffstat (limited to 'src/encoder_plugin.h')
-rw-r--r--src/encoder_plugin.h2
1 files changed, 2 insertions, 0 deletions
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