aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-09-27 04:58:42 -0700
committerChris Robinson <[email protected]>2009-09-27 04:58:42 -0700
commitbd6f3b1273e6ba2834e09b5ba17d1c4f20ab5a48 (patch)
tree3661f507ea85755abdcf23044aa58906bef6e531 /Alc/ALc.c
parent4e9767bb22c4dcf407dc55b889c4c8c0be17cd67 (diff)
Report disconnect if the device fails to reset
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 0382881c..6201ff5f 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1192,7 +1192,8 @@ ALCAPI ALCcontext* ALCAPIENTRY alcCreateContext(ALCdevice *device, const ALCint
if(ALCdevice_ResetPlayback(device) == ALC_FALSE)
{
- SetALCError(ALC_INVALID_VALUE);
+ SetALCError(ALC_INVALID_DEVICE);
+ aluHandleDisconnect(device);
ProcessContext(NULL);
return NULL;
}