aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/pulseaudio.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-06 02:58:43 -0700
committerChris Robinson <[email protected]>2011-07-06 02:58:43 -0700
commitbed264ad776f9e27390394a8e62a4e0a9b39b382 (patch)
treede38eaf170f762a83271247797c75972ef3533ec /Alc/pulseaudio.c
parentf8be0448b01b0fa9e06c5f96de1384caf1d9477f (diff)
Use a Lock/UnlockDevice function instead of locking a NULL context
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r--Alc/pulseaudio.c4
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) //{{{