diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-09-14 21:51:05 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-09-14 21:51:05 +0000 |
commit | 3396b65f15a06ff312e318bc05e502ba402c564e (patch) | |
tree | 5087148cbe36f765f9fff99528d812c198799c63 /src/pulsecore/source.c | |
parent | f0b9dce32e4c5d77f57364ccdc7795f828f7f6a0 (diff) |
simplify rt loops a bit by moving more code into pa_rtpoll. It is now possible to attach "work" functions to a pa_rtpoll_item, which will be called in each loop iteration. This allows us to hide the message processing in the RT loops and to drop the seperate sink_input->process hooks. Basically, only the driver-specific code remains in the RT loops.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1822 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/source.c')
-rw-r--r-- | src/pulsecore/source.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/pulsecore/source.c b/src/pulsecore/source.c index 2f1a5a5f..34e023de 100644 --- a/src/pulsecore/source.c +++ b/src/pulsecore/source.c @@ -504,21 +504,3 @@ int pa_source_suspend_all(pa_core *c, int suspend) { return ret; } - -int pa_source_process_outputs(pa_source *s) { - pa_source_output *o; - void *state = NULL; - int r; - - pa_source_assert_ref(s); - - if (!PA_SOURCE_LINKED(s->state)) - return 0; - - while ((o = pa_hashmap_iterate(s->thread_info.outputs, &state, NULL))) - if (o->process) - if ((r = o->process(o))) - return r; - - return 0; -} |