diff options
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r-- | Alc/pulseaudio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index 1a4789b3..2f8c8ee0 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -361,7 +361,7 @@ static void stream_buffer_attr_callback(pa_stream *stream, void *pdata) //{{{ ALCdevice *Device = pdata; pulse_data *data = Device->ExtraData; - LockContext(NULL); + LockDevice(Device); data->attr = *(pa_stream_get_buffer_attr(stream)); Device->UpdateSize = data->attr.minreq / data->frame_size; @@ -372,7 +372,7 @@ static void stream_buffer_attr_callback(pa_stream *stream, void *pdata) //{{{ AL_PRINT("PulseAudio returned minreq > tlength/2; expect break up\n"); } - UnlockContext(NULL); + UnlockDevice(Device); }//}}} static void stream_device_callback(pa_stream *stream, void *pdata) //{{{ |