uber minor tweaks

git-svn-id: https://svn.musicpd.org/mpd/trunk@1563 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes
2004-06-19 16:27:48 +00:00
parent e1a94f917d
commit 0228a4a5ca
2 changed files with 7 additions and 5 deletions
+4 -3
View File
@@ -57,10 +57,11 @@ void clearOutputBuffer(OutputBuffer * cb) {
void flushOutputBuffer(OutputBuffer * cb) {
if(currentChunk == cb->end) {
cb->end++;
if(cb->end>=buffered_chunks) {
cb->end = 0;
int next = cb->end+1;
if(next>=buffered_chunks) {
next = 0;
}
cb->end = next;
currentChunk = -1;
}
}