pass buffered_chunks to initOutputBuffer()

Try to make OutputBuffer self-contained, without depending on a global
variable.

git-svn-id: https://svn.musicpd.org/mpd/trunk@7310 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Max Kellermann
2008-04-12 04:18:04 +00:00
committed by Eric Wong
parent b2819e12e7
commit e9e557c8d1
3 changed files with 21 additions and 16 deletions
+3 -1
View File
@@ -46,6 +46,8 @@ typedef struct _OutputBufferChunk {
typedef struct _OutputBuffer {
OutputBufferChunk *chunks;
unsigned int size;
/** the index of the first decoded chunk */
mpd_uint16 volatile begin;
@@ -58,7 +60,7 @@ typedef struct _OutputBuffer {
ConvState convState;
} OutputBuffer;
void initOutputBuffer(OutputBuffer * cb);
void initOutputBuffer(OutputBuffer * cb, unsigned int size);
void clearOutputBuffer(OutputBuffer * cb);