From d51c99ac75e43f62b30f2a2265e96081da4d5a06 Mon Sep 17 00:00:00 2001 From: cg Date: Sun, 8 Apr 2001 20:14:14 +0000 Subject: if the feeder chain returned no data, do not try to acquire the data. --- sys/dev/sound/pcm/buffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/sound/pcm/buffer.c') diff --git a/sys/dev/sound/pcm/buffer.c b/sys/dev/sound/pcm/buffer.c index 1480c95..ddc3219 100644 --- a/sys/dev/sound/pcm/buffer.c +++ b/sys/dev/sound/pcm/buffer.c @@ -514,7 +514,8 @@ sndbuf_feed(struct snd_dbuf *from, struct snd_dbuf *to, struct pcm_channel *chan return EINVAL; count = FEEDER_FEED(feeder, channel, to->tmpbuf, count, from); - sndbuf_acquire(to, to->tmpbuf, count); + if (count) + sndbuf_acquire(to, to->tmpbuf, count); /* the root feeder has called sndbuf_dispose(from, , bytes fetched) */ return 0; -- cgit v1.1