Erich E. Hoover : quartz: Fix race condition between EndOfStream and Pause.
Module: wine Branch: master Commit: dd3278577260788b5e5349be17b5c90ba3657175 URL: http://source.winehq.org/git/wine.git/?a=commit;h=dd3278577260788b5e5349be17... Author: Erich E. Hoover <erich.e.hoover(a)gmail.com> Date: Fri Jul 18 10:57:13 2014 -0600 quartz: Fix race condition between EndOfStream and Pause. --- dlls/quartz/dsoundrender.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c index 8c67374..2914b15 100644 --- a/dlls/quartz/dsoundrender.c +++ b/dlls/quartz/dsoundrender.c @@ -243,7 +243,7 @@ end: static HRESULT DSoundRender_HandleEndOfStream(DSoundRenderImpl *This) { - while (1) + while (This->renderer.filter.state == State_Running) { DWORD pos1, pos2; DSoundRender_UpdatePositions(This, &pos1, &pos2);
participants (1)
-
Alexandre Julliard