mirror of
https://github.com/reactos/wine.git
synced 2024-11-27 21:50:37 +00:00
quartz: Fix race condition on EndOfStream between csRenderLock and filter.csFilter.
This commit is contained in:
parent
a9325037b5
commit
126a420c56
@ -254,8 +254,8 @@ static HRESULT DSoundRender_HandleEndOfStream(DSoundRenderImpl *This)
|
|||||||
LeaveCriticalSection(&This->renderer.filter.csFilter);
|
LeaveCriticalSection(&This->renderer.filter.csFilter);
|
||||||
LeaveCriticalSection(&This->renderer.csRenderLock);
|
LeaveCriticalSection(&This->renderer.csRenderLock);
|
||||||
WaitForSingleObject(This->blocked, 10);
|
WaitForSingleObject(This->blocked, 10);
|
||||||
EnterCriticalSection(&This->renderer.filter.csFilter);
|
|
||||||
EnterCriticalSection(&This->renderer.csRenderLock);
|
EnterCriticalSection(&This->renderer.csRenderLock);
|
||||||
|
EnterCriticalSection(&This->renderer.filter.csFilter);
|
||||||
This->in_loop = 0;
|
This->in_loop = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user