Fix race condition between EndOfStream and Pause.

This commit is contained in:
Erich E. Hoover 2014-07-18 10:58:54 -06:00
parent bc6f854478
commit 95bee0aa1e
2 changed files with 28 additions and 2 deletions

5
debian/changelog vendored
View File

@ -1,6 +1,7 @@
wine-compholio (1.7.22) UNRELEASED; urgency=low
wine-compholio (1.7.23) UNRELEASED; urgency=low
* Fix possible race conditions in strmbase/quartz.
-- Erich E. Hoover <erich.e.hoover@gmail.com> Thu, 17 Jul 2014 10:53:49 -0600
* Fix race condition between EndOfStream and Pause.
-- Erich E. Hoover <erich.e.hoover@gmail.com> Fri, 18 Jul 2014 10:58:01 -0600
wine-compholio (1.7.22) unstable; urgency=low
* Implement passing ACLs to CreateProcess.

View File

@ -0,0 +1,25 @@
From abaf77994534eaa61cdb2e6dad10de2d5ff7f50f Mon Sep 17 00:00:00 2001
From: "Erich E. Hoover" <erich.e.hoover@gmail.com>
Date: Fri, 18 Jul 2014 10:57:13 -0600
Subject: 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);
--
1.7.9.5