Maarten Lankhorst : winealsa.drv: Remove call to snd_pcm_drain.

Alexandre Julliard julliard at winehq.org
Wed Oct 14 09:01:59 CDT 2009


Module: wine
Branch: master
Commit: d7a9e2d275fbc044eced7f705dcb1d879b4336af
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d7a9e2d275fbc044eced7f705dcb1d879b4336af

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Tue Oct 13 20:04:22 2009 +0200

winealsa.drv: Remove call to snd_pcm_drain.

snd_pcm_drain can cause a deadlock if in the wrong state, and 
snd_pcm_drop below does the same thing.

---

 dlls/winealsa.drv/waveout.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/dlls/winealsa.drv/waveout.c b/dlls/winealsa.drv/waveout.c
index 24207ec..25a1618 100644
--- a/dlls/winealsa.drv/waveout.c
+++ b/dlls/winealsa.drv/waveout.c
@@ -322,9 +322,6 @@ static	void	wodPlayer_Reset(WINE_WAVEDEV* wwo, BOOL reset)
     int                         err;
     TRACE("(%p)\n", wwo);
 
-    /* flush all possible output */
-    snd_pcm_drain(wwo->pcm);
-
     wodUpdatePlayedTotal(wwo, NULL);
     /* updates current notify list */
     wodPlayer_NotifyCompletions(wwo, FALSE);




More information about the wine-cvs mailing list