From 6f152130616462e7794a36c5e5be7f590fd78032 Mon Sep 17 00:00:00 2001
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Date: Sat, 12 Dec 2015 17:50:38 +0200
Subject: Print the number of frames and bytes captured when the interval is
 null

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 yavta.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/yavta.c b/yavta.c
index b627725..09eb485 100644
--- a/yavta.c
+++ b/yavta.c
@@ -1715,8 +1715,10 @@ static int video_do_capture(struct device *dev, unsigned int nframes,
 		goto done;
 	}
 
-	if (ts.tv_sec == start.tv_sec && ts.tv_nsec == start.tv_nsec)
+	if (ts.tv_sec == start.tv_sec && ts.tv_nsec == start.tv_nsec) {
+		printf("Captured %u frames (%u bytes) 0 seconds\n", i, size);
 		goto done;
+	}
 
 	ts.tv_sec -= start.tv_sec;
 	ts.tv_nsec -= start.tv_nsec;
-- 
cgit v1.2.3