summaryrefslogtreecommitdiff
path: root/yavta.c
diff options
context:
space:
mode:
Diffstat (limited to 'yavta.c')
-rw-r--r--yavta.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/yavta.c b/yavta.c
index 1b9a7ff..f8dfed6 100644
--- a/yavta.c
+++ b/yavta.c
@@ -882,6 +882,9 @@ static int video_do_capture(struct device *dev, unsigned int nframes,
/* Stop streaming. */
video_enable(dev, 0);
+ if (end.tv_sec == start.tv_sec && end.tv_usec == start.tv_usec)
+ goto done;
+
end.tv_sec -= start.tv_sec;
end.tv_usec -= start.tv_usec;
if (end.tv_usec < 0) {