summaryrefslogtreecommitdiff
path: root/src/modules/module-pipe-source.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-08-01 01:59:58 +0200
committerLennart Poettering <lennart@poettering.net>2009-08-01 01:59:58 +0200
commite5c2256e360df3662295b8cc0594568e425e8679 (patch)
tree855ce0e26013ed5fddd5fb0a5233d624def7317c /src/modules/module-pipe-source.c
parent0113e7282cc5c0131f9f681b84459fcdf2e806c4 (diff)
pipe: replace PIPE_BUF macro pa pa_pipe_buf call
This should help portability to platforms that lack PIPE_BUF. Based on a patch from Samuel Thibault. See ticket #546
Diffstat (limited to 'src/modules/module-pipe-source.c')
-rw-r--r--src/modules/module-pipe-source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-pipe-source.c b/src/modules/module-pipe-source.c
index e5609fb59..49104f8d5 100644
--- a/src/modules/module-pipe-source.c
+++ b/src/modules/module-pipe-source.c
@@ -142,7 +142,7 @@ static void thread_func(void *userdata) {
void *p;
if (!u->memchunk.memblock) {
- u->memchunk.memblock = pa_memblock_new(u->core->mempool, PIPE_BUF);
+ u->memchunk.memblock = pa_memblock_new(u->core->mempool, pa_pipe_buf(u->fd));
u->memchunk.index = u->memchunk.length = 0;
}