diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2015-12-12 17:50:38 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2015-12-12 17:51:14 +0200 |
commit | 6f152130616462e7794a36c5e5be7f590fd78032 (patch) | |
tree | 75ccb434df5eae343f89aa665b33f3362367d803 | |
parent | 50c7be628ce652eaf81eca3a58754d765b5aac6d (diff) |
Print the number of frames and bytes captured when the interval is null
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | yavta.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |