diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-10-25 13:59:45 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-10-25 13:59:45 +0200 |
commit | fd1171a3ae33ae039a05a01887d4651b7c34d8f3 (patch) | |
tree | cb513654aa08f61580225011ada4110648686d7b /yavta.c | |
parent | f45e954c945d76143453f16cb144138c07914d28 (diff) |
Exit when VIDIOC_STREAMON fails.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'yavta.c')
-rw-r--r-- | yavta.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -980,7 +980,9 @@ static int video_do_capture(struct device *dev, unsigned int nframes, } /* Start streaming. */ - video_enable(dev, 1); + ret = video_enable(dev, 1); + if (ret < 0) + goto done; size = 0; clock_gettime(CLOCK_MONOTONIC, &start); |