winealsa.drv: Fix underrun recovery.

This commit is contained in:
Maarten Lankhorst 2009-11-08 11:12:16 +01:00 committed by Alexandre Julliard
parent 7d5c16b64e
commit 3a9ea794e1
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}