diff options
author | Max Kellermann <max@duempel.org> | 2008-04-12 04:14:50 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-04-12 04:14:50 +0000 |
commit | 079f13bc7df49fec505d757e1ee4a8d55bcd0da1 (patch) | |
tree | 5291c03c6fab90aefc1364b3ed913f25b4907176 /src/outputBuffer.h | |
parent | 4ee8396f417d15c161b425c6f8c15fe845242434 (diff) | |
download | mpd-079f13bc7df49fec505d757e1ee4a8d55bcd0da1.tar.gz mpd-079f13bc7df49fec505d757e1ee4a8d55bcd0da1.tar.xz mpd-079f13bc7df49fec505d757e1ee4a8d55bcd0da1.zip |
moved currentChunk into OutputBuffer
currentChunk is a global variable, which renders the whole output
buffer code non-reentrant. Although this is not a real problem since
there is only one global output buffer currently, we should move it to
the OutputBuffer struct.
git-svn-id: https://svn.musicpd.org/mpd/trunk@7284 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/outputBuffer.h')
-rw-r--r-- | src/outputBuffer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/outputBuffer.h b/src/outputBuffer.h index 8e797c324..21c375f96 100644 --- a/src/outputBuffer.h +++ b/src/outputBuffer.h @@ -52,6 +52,8 @@ typedef struct _OutputBuffer { /** the index after the last decoded chunk */ mpd_uint16 volatile end; + mpd_sint16 currentChunk; + AudioFormat audioFormat; ConvState convState; } OutputBuffer; |