aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:16:56 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:16:56 +0000
commit78f606078e347bc88e7888cc669184acf767c3ff (patch)
tree006ac69f94d87c6e4e16eee07be3583bf651e80d /src/outputBuffer.c
parentf0e28ede4da3da8754f48ef5af1b654792e3364c (diff)
downloadmpd-78f606078e347bc88e7888cc669184acf767c3ff.tar.gz
mpd-78f606078e347bc88e7888cc669184acf767c3ff.tar.xz
mpd-78f606078e347bc88e7888cc669184acf767c3ff.zip
let initOutputBuffer() allocate memory
This is the first patch in a series which removes the shared memory, and moves all the playerData objects into the normal libc heap. git-svn-id: https://svn.musicpd.org/mpd/trunk@7304 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/outputBuffer.c')
-rw-r--r--src/outputBuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c
index 26dc50a91..f1d7201a6 100644
--- a/src/outputBuffer.c
+++ b/src/outputBuffer.c
@@ -26,10 +26,10 @@
#include "conf.h"
#include "os_compat.h"
-void initOutputBuffer(OutputBuffer * cb, OutputBufferChunk * chunks)
+void initOutputBuffer(OutputBuffer * cb)
{
memset(&cb->convState, 0, sizeof(ConvState));
- cb->chunks = chunks;
+ cb->chunks = xmalloc(buffered_chunks * sizeof(*cb->chunks));
cb->currentChunk = -1;
}