mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
don't try to dump nonexistent data when recording
This commit is contained in:
parent
805030358f
commit
c2e6dd76ce
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue