diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-07-09 23:26:10 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-07-09 23:26:10 +0000 |
commit | cffc7768bd5b8d16308c15102b4d03d08d287098 (patch) | |
tree | 389f6035e787b8e2106862d77718cc9dc4f140b6 /src/mainloop.c | |
parent | 863fb90d90c2e57e60a0f5b81e0847319399b8ed (diff) |
fix recording for simpel and esound protocols
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@54 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/mainloop.c')
-rw-r--r-- | src/mainloop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainloop.c b/src/mainloop.c index 4755cc8f..a485a963 100644 --- a/src/mainloop.c +++ b/src/mainloop.c @@ -167,7 +167,8 @@ static void dispatch_pollfds(struct pa_mainloop *m) { assert(s->pollfd->fd == s->fd && s->callback); s->callback(&m->api, s, s->fd, - ((s->pollfd->revents & (POLLIN|POLLHUP|POLLERR)) ? PA_MAINLOOP_API_IO_EVENT_INPUT : 0) | + ((s->pollfd->revents & POLLHUP) ? PA_MAINLOOP_API_IO_EVENT_HUP : 0) | + ((s->pollfd->revents & POLLIN) ? PA_MAINLOOP_API_IO_EVENT_INPUT : 0) | ((s->pollfd->revents & POLLOUT) ? PA_MAINLOOP_API_IO_EVENT_OUTPUT : 0), s->userdata); s->pollfd->revents = 0; } |