diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-06-19 16:27:48 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-06-19 16:27:48 +0000 |
commit | 0228a4a5ca77f49a554b4a2f689ee76ff28dca6d (patch) | |
tree | 721cefda9d2b18acac18c6ea191d213b145650e8 /src/outputBuffer.c | |
parent | e1a94f917df4da9073cf52d8dcdb26bc12b76930 (diff) | |
download | mpd-0228a4a5ca77f49a554b4a2f689ee76ff28dca6d.tar.gz mpd-0228a4a5ca77f49a554b4a2f689ee76ff28dca6d.tar.xz mpd-0228a4a5ca77f49a554b4a2f689ee76ff28dca6d.zip |
uber minor tweaks
git-svn-id: https://svn.musicpd.org/mpd/trunk@1563 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/outputBuffer.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c index bde118ff8..3620f826b 100644 --- a/src/outputBuffer.c +++ b/src/outputBuffer.c @@ -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; } } |