aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/pulseaudio.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-11-01 09:29:20 -0800
committerChris Robinson <[email protected]>2009-11-01 09:29:20 -0800
commitfb258a7416a879bc19b92a2bae262d7d709cea72 (patch)
tree5b2e466dbafa11e1323ef135012aee7ddf6c433a /Alc/pulseaudio.c
parent5aed92788715cc957d6adb2b621f49f8ed22e162 (diff)
Properly lock the device when setting it disconnected
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r--Alc/pulseaudio.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c
index fa7e593b..722df4f4 100644
--- a/Alc/pulseaudio.c
+++ b/Alc/pulseaudio.c
@@ -266,9 +266,7 @@ static void context_state_callback2(pa_context *context, void *pdata) //{{{
if(ppa_context_get_state(context) == PA_CONTEXT_FAILED)
{
AL_PRINT("Received context failure!\n");
- SuspendContext(NULL);
aluHandleDisconnect(Device);
- ProcessContext(NULL);
}
}//}}}
@@ -279,9 +277,7 @@ static void stream_state_callback2(pa_stream *stream, void *pdata) //{{{
if(ppa_stream_get_state(stream) == PA_STREAM_FAILED)
{
AL_PRINT("Received stream failure!\n");
- SuspendContext(NULL);
aluHandleDisconnect(Device);
- ProcessContext(NULL);
}
}//}}}