Module: wine Branch: master Commit: 3a9ea794e1a96e72f36af1a96184a5299512fe50 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3a9ea794e1a96e72f36af1a961...
Author: Maarten Lankhorst m.b.lankhorst@gmail.com Date: Sun Nov 8 11:12:16 2009 +0100
winealsa.drv: Fix underrun recovery.
---
dlls/winealsa.drv/waveout.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/winealsa.drv/waveout.c b/dlls/winealsa.drv/waveout.c index 25a1618..3476f59 100644 --- a/dlls/winealsa.drv/waveout.c +++ b/dlls/winealsa.drv/waveout.c @@ -110,6 +110,7 @@ static BOOL wodUpdatePlayedTotal(WINE_WAVEDEV* wwo, snd_pcm_status_t* ps) if (state != SND_PCM_STATE_RUNNING && state != SND_PCM_STATE_PREPARED) { WARN("Unexpected state (%d) while updating Total Played, resetting\n", state); + snd_pcm_recover(wwo->pcm, -EPIPE, 0); delay=0; }