projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93c698c
)
pulse: Initalise pa_threaded_mainloop with zeroes
author
Arun Raghavan
<arun@accosted.net>
Thu, 16 Oct 2014 15:09:22 +0000
(17:09 +0200)
committer
Arun Raghavan
<arun@accosted.net>
Fri, 17 Oct 2014 08:56:01 +0000
(10:56 +0200)
src/pulse/thread-mainloop.c
patch
|
blob
|
history
diff --git
a/src/pulse/thread-mainloop.c
b/src/pulse/thread-mainloop.c
index
435e9f6
..
631b6ae
100644
(file)
--- a/
src/pulse/thread-mainloop.c
+++ b/
src/pulse/thread-mainloop.c
@@
-97,7
+97,7
@@
pa_threaded_mainloop *pa_threaded_mainloop_new(void) {
pa_init_i18n();
- m = pa_xnew(pa_threaded_mainloop, 1);
+ m = pa_xnew
0
(pa_threaded_mainloop, 1);
if (!(m->real_mainloop = pa_mainloop_new())) {
pa_xfree(m);
@@
-107,14
+107,9
@@
pa_threaded_mainloop *pa_threaded_mainloop_new(void) {
m->mutex = pa_mutex_new(true, true);
m->cond = pa_cond_new();
m->accept_cond = pa_cond_new();
- m->thread = NULL;
- m->name = NULL;
pa_mainloop_set_poll_func(m->real_mainloop, poll_func, m->mutex);
- m->n_waiting = 0;
- m->n_waiting_for_accept = 0;
-
return m;
}