From f0e78138d1f60581cc09ec50a73e8c9dc6cd4241 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 12 Apr 2008 04:21:13 +0000 Subject: 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 --- src/outputBuffer.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/outputBuffer.h') 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; -- cgit v1.2.3