diff options
author | Chris Robinson <[email protected]> | 2015-10-24 16:31:28 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-10-24 16:31:28 -0700 |
commit | a57fe89050a1cf909021f2f94e6d96e44e96aa89 (patch) | |
tree | 3615f605ece6b91baa5c5ff701ae047eb81c5441 /Alc/ALc.c | |
parent | 298fdb220d2fe13b2c12d842ad40f39d9cf70e51 (diff) |
Lock the source queue for writing when updating the playback offset
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1608,9 +1608,9 @@ void ALCcontext_ProcessUpdates(ALCcontext *context) if((Source->state == AL_PLAYING || Source->state == AL_PAUSED) && Source->Offset >= 0.0) { - ReadLock(&Source->queue_lock); + WriteLock(&Source->queue_lock); ApplyOffset(Source); - ReadUnlock(&Source->queue_lock); + WriteUnlock(&Source->queue_lock); } new_state = Source->new_state; |