aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-08-13 13:32:42 -0700
committerChris Robinson <[email protected]>2009-08-13 13:32:42 -0700
commit45552a68ce4f146faeba4ab3889ebd6ed0547052 (patch)
treef247f1cd4e7219a2a704d5efce490583cde91f15 /Alc/ALc.c
parentd46655fbb2a70758b8a901b86055b82068c7231b (diff)
Hold the lock while initializing context playback
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 034bfb4a..1749a9c9 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1033,19 +1033,17 @@ ALCAPI ALCcontext* ALCAPIENTRY alcCreateContext(ALCdevice *device, const ALCint
return NULL;
}
+ SuspendContext(NULL);
+
ALContext->Device = device;
InitContext(ALContext);
device->Context = ALContext;
- SuspendContext(NULL);
-
ALContext->next = g_pContextList;
g_pContextList = ALContext;
g_ulContextCount++;
- ProcessContext(NULL);
-
// Check for attributes
if (attrList)
{
@@ -1101,6 +1099,8 @@ ALCAPI ALCcontext* ALCAPIENTRY alcCreateContext(ALCdevice *device, const ALCint
SetALCError(ALC_INVALID_VALUE);
}
ALContext->Frequency = device->Frequency;
+
+ ProcessContext(NULL);
}
else
{