diff options
author | Chris Robinson <[email protected]> | 2012-11-19 16:50:03 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-11-19 16:50:03 -0800 |
commit | 209d09ae1347974142abb07d67efc80702e1e8b5 (patch) | |
tree | c1a662a50e158678296839009641aefdbb0eae68 /Alc/backends/pulseaudio.c | |
parent | 0c030f7d9c0158ae95cd470436b85fc8db774ad2 (diff) |
Avoid locking PulseAudio's mainloop when starting and stopping capture
The mainloop is already locked by the caller, and double-locking interferes
with the subsequent wait.
Diffstat (limited to 'Alc/backends/pulseaudio.c')
-rw-r--r-- | Alc/backends/pulseaudio.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Alc/backends/pulseaudio.c b/Alc/backends/pulseaudio.c index 55df219f..af44e3de 100644 --- a/Alc/backends/pulseaudio.c +++ b/Alc/backends/pulseaudio.c @@ -1288,10 +1288,8 @@ static void pulse_start_capture(ALCdevice *device) pulse_data *data = device->ExtraData; pa_operation *o; - pa_threaded_mainloop_lock(data->loop); o = pa_stream_cork(data->stream, 0, stream_success_callback, device); wait_for_operation(o, data->loop); - pa_threaded_mainloop_unlock(data->loop); } static void pulse_stop_capture(ALCdevice *device) @@ -1299,10 +1297,8 @@ static void pulse_stop_capture(ALCdevice *device) pulse_data *data = device->ExtraData; pa_operation *o; - pa_threaded_mainloop_lock(data->loop); o = pa_stream_cork(data->stream, 1, stream_success_callback, device); wait_for_operation(o, data->loop); - pa_threaded_mainloop_unlock(data->loop); } static ALCenum pulse_capture_samples(ALCdevice *device, ALCvoid *buffer, ALCuint samples) |