aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:21:13 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:21:13 +0000
commitf0e78138d1f60581cc09ec50a73e8c9dc6cd4241 (patch)
tree48f99b55596d32a6b5f92fe6fdc045c321a0f6b6 /src/outputBuffer.h
parent3105280f26e07108ba979be11e398ff2155c1ceb (diff)
downloadmpd-f0e78138d1f60581cc09ec50a73e8c9dc6cd4241.tar.gz
mpd-f0e78138d1f60581cc09ec50a73e8c9dc6cd4241.tar.xz
mpd-f0e78138d1f60581cc09ec50a73e8c9dc6cd4241.zip
eliminate OutputBuffer.currentChunk
OutputBuffer.currentChunk contains redundant data: it is either -1 when there is no chunk which is currently being written, or it equals "end". If we always keep chunk[end] in a valid state, we can remove OutputBuffer.currentChunk. This patch may look a bit clumsy, especially flushOutputBuffer(), but that will be fixed later with an major OutputBuffer API overhaul. git-svn-id: https://svn.musicpd.org/mpd/trunk@7339 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/outputBuffer.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/outputBuffer.h b/src/outputBuffer.h
index 7a06f9d41..d53fe617f 100644
--- a/src/outputBuffer.h
+++ b/src/outputBuffer.h
@@ -53,8 +53,6 @@ typedef struct _OutputBuffer {
/** the index after the last decoded chunk */
unsigned int volatile end;
- int currentChunk;
-
AudioFormat audioFormat;
ConvState convState;
} OutputBuffer;