summaryrefslogtreecommitdiff
path: root/yavta.c
diff options
context:
space:
mode:
Diffstat (limited to 'yavta.c')
-rw-r--r--yavta.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/yavta.c b/yavta.c
index 09eb485..49361ad 100644
--- a/yavta.c
+++ b/yavta.c
@@ -1708,7 +1708,9 @@ static int video_do_capture(struct device *dev, unsigned int nframes,
}
/* Stop streaming. */
- video_enable(dev, 0);
+ ret = video_enable(dev, 0);
+ if (ret < 0)
+ return ret;
if (nframes == 0) {
printf("No frames captured.\n");