uber minor tweaks
git-svn-id: https://svn.musicpd.org/mpd/trunk@1563 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
+4
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user