mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
minor cleanliness fixes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1617 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
357c0e415f
commit
72840abe8a
1 changed files with 4 additions and 1 deletions
|
|
@ -305,6 +305,7 @@ static void mainloop_defer_free(pa_defer_event *e) {
|
|||
if (e->enabled) {
|
||||
assert(e->mainloop->n_enabled_defer_events > 0);
|
||||
e->mainloop->n_enabled_defer_events--;
|
||||
e->enabled = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -395,6 +396,7 @@ static void mainloop_time_free(pa_time_event *e) {
|
|||
if (e->enabled) {
|
||||
assert(e->mainloop->n_enabled_time_events > 0);
|
||||
e->mainloop->n_enabled_time_events--;
|
||||
e->enabled = 0;
|
||||
}
|
||||
|
||||
if (e->mainloop->cached_next_time_event == e)
|
||||
|
|
@ -541,6 +543,7 @@ static void cleanup_time_events(pa_mainloop *m, int force) {
|
|||
if (!e->dead && e->enabled) {
|
||||
assert(m->n_enabled_time_events > 0);
|
||||
m->n_enabled_time_events--;
|
||||
e->enabled = 0;
|
||||
}
|
||||
|
||||
if (e->destroy_callback)
|
||||
|
|
@ -574,9 +577,9 @@ static void cleanup_defer_events(pa_mainloop *m, int force) {
|
|||
}
|
||||
|
||||
if (!e->dead && e->enabled) {
|
||||
e->enabled = 0;
|
||||
assert(m->n_enabled_defer_events > 0);
|
||||
m->n_enabled_defer_events--;
|
||||
e->enabled = 0;
|
||||
}
|
||||
|
||||
if (e->destroy_callback)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue