mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
a bunch of fixes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@10 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
edfad835cb
commit
c8cf0c1ce9
8 changed files with 28 additions and 21 deletions
|
|
@ -248,8 +248,10 @@ int mainloop_iterate(struct mainloop *m, int block) {
|
|||
}
|
||||
}
|
||||
|
||||
if (m->rebuild_pollfds)
|
||||
if (m->rebuild_pollfds) {
|
||||
rebuild_pollfds(m);
|
||||
m->rebuild_pollfds = 0;
|
||||
}
|
||||
|
||||
m->running = 1;
|
||||
|
||||
|
|
@ -431,7 +433,7 @@ void mainloop_source_enable(struct mainloop_source*s, int b) {
|
|||
void mainloop_source_io_set_events(struct mainloop_source*s, enum mainloop_io_event events) {
|
||||
assert(s && !s->dead && s->type == MAINLOOP_SOURCE_TYPE_IO);
|
||||
|
||||
if ((s->io.events && !events) || (!s->io.events && events)) {
|
||||
if (s->io.events != events) {
|
||||
assert(s->mainloop);
|
||||
s->mainloop->rebuild_pollfds = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue