diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2011-11-14 11:33:47 +0100 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2012-01-03 00:20:04 +0530 |
commit | 6aa84d6db0180ce4d12a17818fb6527a12f2e8fb (patch) | |
tree | 319f5ddc5b108343137e85a97d133d223968341a /src/modules/module-pipe-source.c | |
parent | 0d41bcfcbf9c523612e37127dc857b30bc0a565f (diff) | |
download | pulseaudio-6aa84d6db0180ce4d12a17818fb6527a12f2e8fb.tar.gz |
pipe: use pa_pipe_buf instead of the macro PIPE_BUF
This helps when porting to platforms that lack PIPE_BUF.
See bug #42715
Diffstat (limited to 'src/modules/module-pipe-source.c')
-rw-r--r-- | src/modules/module-pipe-source.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-pipe-source.c b/src/modules/module-pipe-source.c index a941f0889..3335907cd 100644 --- a/src/modules/module-pipe-source.c +++ b/src/modules/module-pipe-source.c @@ -286,7 +286,7 @@ int pa__init(pa_module*m) { pa_source_set_asyncmsgq(u->source, u->thread_mq.inq); pa_source_set_rtpoll(u->source, u->rtpoll); - pa_source_set_fixed_latency(u->source, pa_bytes_to_usec(PIPE_BUF, &u->source->sample_spec)); + pa_source_set_fixed_latency(u->source, pa_bytes_to_usec(pa_pipe_buf(u->fd), &u->source->sample_spec)); u->rtpoll_item = pa_rtpoll_item_new(u->rtpoll, PA_RTPOLL_NEVER, 1); pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, NULL); |