aboutsummaryrefslogtreecommitdiff
path: root/src/mixer/pulse_mixer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mixer/pulse_mixer.c')
-rw-r--r--src/mixer/pulse_mixer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mixer/pulse_mixer.c b/src/mixer/pulse_mixer.c
index 5d458b18..a2a4444a 100644
--- a/src/mixer/pulse_mixer.c
+++ b/src/mixer/pulse_mixer.c
@@ -205,6 +205,7 @@ pulse_mixer_setup(struct pulse_mixer *pm)
pa_threaded_mainloop_lock(pm->mainloop);
if (pa_threaded_mainloop_start(pm->mainloop) < 0) {
+ pa_threaded_mainloop_unlock(pm->mainloop);
g_debug("error start mainloop");
return false;
}
@@ -212,6 +213,7 @@ pulse_mixer_setup(struct pulse_mixer *pm)
pa_threaded_mainloop_wait(pm->mainloop);
if (pa_context_get_state(pm->context) != PA_CONTEXT_READY) {
+ pa_threaded_mainloop_unlock(pm->mainloop);
g_debug("error context not ready");
return false;
}