From ecd21fa26c5626dfe8f33854b488340082837f8c Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 22 Feb 2002 08:20:51 +0000 Subject: [PATCH] Removed old assert from read/write_areas --- src/pcm/pcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index 0aa1740a..657b3161 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c @@ -5293,7 +5293,7 @@ snd_pcm_sframes_t snd_pcm_read_areas(snd_pcm_t *pcm, const snd_pcm_channel_area_ err = func(pcm, areas, offset, frames); if (err < 0) break; - assert((snd_pcm_uframes_t)err == frames); + frames = err; offset += frames; size -= frames; xfer += frames; @@ -5377,7 +5377,7 @@ snd_pcm_sframes_t snd_pcm_write_areas(snd_pcm_t *pcm, const snd_pcm_channel_area err = func(pcm, areas, offset, frames); if (err < 0) break; - assert((snd_pcm_uframes_t)err == frames); + frames = err; offset += frames; size -= frames; xfer += frames; -- 2.47.1