summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2001-09-05 14:49:44 +0000
committercg <cg@FreeBSD.org>2001-09-05 14:49:44 +0000
commit1a16a8c5cbb6d0df3393aff23c98d7f3474e5f87 (patch)
treefdab20294d518c744da15ad428b6882967476c38 /sys
parentaf7743c740ab6c51b11c17c365958d188c07f66c (diff)
downloadFreeBSD-src-1a16a8c5cbb6d0df3393aff23c98d7f3474e5f87.zip
FreeBSD-src-1a16a8c5cbb6d0df3393aff23c98d7f3474e5f87.tar.gz
don't try to dump nonexistent data when recording
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sound/pcm/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c
index ec6d1db..f12571f 100644
--- a/sys/dev/sound/pcm/channel.c
+++ b/sys/dev/sound/pcm/channel.c
@@ -318,7 +318,7 @@ chn_rdfeed(struct pcm_channel *c)
c->xruns++;
ret = (amt > 0)? sndbuf_feed(b, bs, c, c->feeder, amt) : 0;
- amt -= sndbuf_getready(b);
+ amt = sndbuf_getready(b);
if (amt > 0)
chn_rddump(c, amt);
OpenPOWER on IntegriCloud