[polypaudio-commits] r940 - /trunk/src/polypcore/iochannel.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sat May 20 08:00:17 PDT 2006
Author: lennart
Date: Sat May 20 17:00:16 2006
New Revision: 940
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=940&root=polypaudio&view=rev
Log:
fix long-standing buf that could cause polypaudio to eat 100% CPU: fix handling of event bits for pa_iochannel
Modified:
trunk/src/polypcore/iochannel.c
Modified: trunk/src/polypcore/iochannel.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/iochannel.c?rev=940&root=polypaudio&r1=939&r2=940&view=diff
==============================================================================
--- trunk/src/polypcore/iochannel.c (original)
+++ trunk/src/polypcore/iochannel.c Sat May 20 17:00:16 2006
@@ -69,17 +69,17 @@
pa_io_event_flags_t f = PA_IO_EVENT_NULL;
assert(io->input_event);
- if (!pa_iochannel_is_readable(io))
+ if (!io->readable)
f |= PA_IO_EVENT_INPUT;
- if (!pa_iochannel_is_writable(io))
+ if (!io->writable)
f |= PA_IO_EVENT_OUTPUT;
io->mainloop->io_enable(io->input_event, f);
} else {
if (io->input_event)
- io->mainloop->io_enable(io->input_event, pa_iochannel_is_readable(io) ? PA_IO_EVENT_NULL : PA_IO_EVENT_INPUT);
+ io->mainloop->io_enable(io->input_event, io->readable ? PA_IO_EVENT_NULL : PA_IO_EVENT_INPUT);
if (io->output_event)
- io->mainloop->io_enable(io->output_event, pa_iochannel_is_writable(io) ? PA_IO_EVENT_NULL : PA_IO_EVENT_OUTPUT);
+ io->mainloop->io_enable(io->output_event, io->writable ? PA_IO_EVENT_NULL : PA_IO_EVENT_OUTPUT);
}
}
More information about the pulseaudio-commits
mailing list