don't try to dump nonexistent data when recording

This commit is contained in:
Cameron Grant 2001-09-05 14:49:44 +00:00
parent 805030358f
commit c2e6dd76ce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83081

View File

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