aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/outputBuffer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c
index 615139231..590b9a433 100644
--- a/src/outputBuffer.c
+++ b/src/outputBuffer.c
@@ -26,6 +26,12 @@
static mpd_sint16 currentChunk = -1;
+void clearOutputBuffer(OutputBuffer * cb) {
+ currentChunk = -1;
+ cb->end = cb->begin;
+ cb->wrap = 0;
+}
+
void flushOutputBuffer(OutputBuffer * cb) {
if(currentChunk == cb->end) {
cb->end++;