From c596ddffab5c41e4c5ab8afed63f1ae40627503d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20H=C3=B6hle?= Date: Wed, 25 Jan 2012 22:53:21 +0100 Subject: [PATCH] winealsa: Fix capture overrun logging. --- dlls/winealsa.drv/mmdevdrv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/winealsa.drv/mmdevdrv.c b/dlls/winealsa.drv/mmdevdrv.c index 1c8b03a34db..9275fbcd02c 100644 --- a/dlls/winealsa.drv/mmdevdrv.c +++ b/dlls/winealsa.drv/mmdevdrv.c @@ -2043,9 +2043,13 @@ static void alsa_read_data(ACImpl *This) nread = snd_pcm_readi(This->pcm_handle, This->local_buffer + pos * This->fmt->nBlockAlign, readable); + TRACE("read %ld from %u limit %lu\n", nread, This->held_frames + This->lcl_offs_frames, readable); if(nread < 0){ int ret; + if(nread == -EAGAIN) /* no data yet */ + return; + WARN("read failed, recovering: %ld (%s)\n", nread, snd_strerror(nread)); ret = snd_pcm_recover(This->pcm_handle, nread, 0);