summaryrefslogtreecommitdiff
path: root/yavta.c
diff options
context:
space:
mode:
Diffstat (limited to 'yavta.c')
-rw-r--r--yavta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/yavta.c b/yavta.c
index 06247e6..95821a5 100644
--- a/yavta.c
+++ b/yavta.c
@@ -1698,7 +1698,7 @@ static int video_do_capture(struct device *dev, unsigned int nframes,
fflush(stdout);
- if (i == nframes - dev->nbufs && !do_requeue_last)
+ if (i >= nframes - dev->nbufs && !do_requeue_last)
continue;
ret = video_queue_buffer(dev, buf.index, fill);