From: Abramo Bagnara Date: Thu, 22 Feb 2001 10:32:05 +0000 (+0000) Subject: Typo X-Git-Tag: v1.0.3~86 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=a59b54476a6ace340c777caea5ec2f3935d7dfe6;p=alsa-oss.git Typo --- diff --git a/alsa-oss.c b/alsa-oss.c index 305df18..05138d5 100644 --- a/alsa-oss.c +++ b/alsa-oss.c @@ -653,7 +653,7 @@ static ssize_t oss_dsp_read(int fd, void *buf, size_t n) } frames = n / str->frame_bytes; _again: - result = snd_pcm_readi(pcm, buf, n); + result = snd_pcm_readi(pcm, buf, frames); if (result == -EPIPE && snd_pcm_state(pcm) == SND_PCM_STATE_XRUN && (result = snd_pcm_prepare(pcm)) == 0)